Structures

Q1: Which of the following statements is correct?

A A struct never declares a default constructor.

B All value types in C# inherently derive from ValueType, which inherits from Object.

C A struct never declares a default destructor.

D In C#, classes and structs are semantically same.

ANS:B - All value types in C# inherently derive from ValueType, which inherits from Object.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.