Ajeet Mishra
What are the differences between Class and Struts?
By Ajeet Mishra in .NET on Sep 07 2015
  • Mukesh Kumar
    Sep, 2017 3

    class is reference type while struct is value type

    • 0
  • Munesh Sharma
    May, 2016 31

    http://www.c-sharpcorner.com/blogs/difference-between-class-and-struts1

    • 0
  • Ajeet Mishra
    Sep, 2015 7

    Class Class is a reference type Class supports inheritance Class variables are stored on Heap Class can have destructor Boxing a class object creates reference to same object All the members of Class are private by default Class is well suited for Data hiding Struct Struct is a value type Struct will not support inheritance Struct variables are stored on Stack Struct will not have destructor Boxing a strut object will create a copy in diff type All the members of struct are public by default Struts are not suited for Data hiding

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS