6
Answers

NP42 struct and class

Maha

Maha

16y
3k
1

Hi Guys

 

NP42 struct and class

 

Following website says structs are lightweight classes. Therefore in my view of class can be used instead of struct.

 

Is there any situation only struct can be used? Anyone knows please tell me. It is much appreciated if it is demonstrated with example.  

 

http://www.albahari.com/value%20vs%20reference%20types.html

               

Thank you

Answers (6)
Next Recommended Forum