P2Pprogrammer 2 programmer

Home > Programmer2Programmer.NET Forum> IT Interview Question Answer Discussion >> Difference between a Struct and a Class...

Welcome Guest My Thread | Search | Active Topics | Members | Log In | Register

NOTE : Log In required to post Replies for this discussion.
Difference between a Struct and a Class
NetExpert Posted: Thursday 05, February 2015 04:18:35 PM     
   
What is the difference between a Struct and a Class?
Back to Top ^  
 AtanuMaity Posted: Thursday 05, February 2015 04:22:57 PM
  
   
Structs are value-type variables and are thus saved on the stack, additional overhead but faster ret
rieval.  Another difference is that structs cannot inherit. 

For more question, answer on C# and VB.Net
Please check our facebook page

http://on.fb.me/18Rbj6u

Back to Top ^ 


Home > Programmer2Programmer.NET Forum >IT Interview Question Answer Discussion >> Difference between a Struct and a Class...