C# Programming - Structures - Discussion
Discussion Forum : Structures - General Questions (Q.No. 16)
16.
Which of the following are true about classes and struct?
- A class is a reference type, whereas a struct is a value type.
- Objects are created using new, whereas structure variables can be created either using new or without using new.
- A structure variable will always be created slower than an object.
- A structure variable will die when it goes out of scope.
- An object will die when it goes out of scope.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers