3
Reply

What are the differences between Class and Struts?

Ajeet Mishra

Ajeet Mishra

Sep 07, 2015
435
0

    class is reference type while struct is value type

    Mukesh Kumar
    September 03, 2017
    0

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

    Munesh Sharma
    May 31, 2016
    0

    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

    Ajeet Mishra
    September 07, 2015
    0