CSharp - Will the code compile: struct base type?

Introduction

Will the code compile

struct MyStructure1
{
}
struct MyStructure2 : MyStructure1
{
}

No, structures cannot be inherited.

Will the code compile?

class A
{
}
struct MyStructure2 : A{
}

No, we cannot inherit structures from another class.

Related Quiz