Multiple choice technology programming languages

Structure

  1. Structures can be used as a base for other structures.

  2. A structure can implement one or more interfaces.

  3. Structure members can be methods, fields, indexers, properties, operator methods, and events.

  4. Structures can also define constructors, but not destructors. And you cannot define a default (parameterless) constructor for a structure.

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

In C#, structs cannot inherit from other structures or classes, but they can implement interfaces, define constructors (though parameterless constructors have specific restrictions depending on the C# version), and contain members like methods, properties, and events. Since this is an MC-2 (multiple response) question, all three selected options are correct statements.