C# Programming - Structures - Discussion

Discussion Forum : Structures - General Questions (Q.No. 14)
14.
Which of the following statements is correct?
A struct never declares a default constructor.
All value types in C# inherently derive from ValueType, which inherits from Object.
A struct never declares a default destructor.
In C#, classes and structs are semantically same.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
6 comments Page 1 of 1.

Chandan singh said:   3 years ago
I think A is the correct answer.

Rudra said:   4 years ago
According to me, Option A is correct.

Vaibhav said:   5 years ago
Option B is also correct.

Sagar said:   8 years ago
1st answer is correct. Structure cannot contain default or parameter less constructors.

Ragini said:   10 years ago
It will give an error if we declare a default constructor in struct.

Sweety said:   10 years ago
Structure cannot have default constructor.

Post your comments here:

Your comments will be displayed after verification.