5
Reply

what is difference between class and object

jigar gajjar

jigar gajjar

12y
12.1k
0
Reply

    Please refer to the following URL to know the differences between Class and Object,http://onlydifferencefaqs.blogspot.in/2012/07/oops-difference-faqs-2_11.html

    Class is a type which is logical and not physical. Object is the physical form a class type where memory allocation is done. In a simple terms it is a blue print or structure of the object and object is the actual representation of the type.

    Class contains data types and member functions.Object is reusable , we access class data through object

    Class is user defined data type it contain data member and funciton. object is real time entity .

    Class is a template(type) or blue print its state how objects should be and behave. Object is defined as a software construct which binds data and logic or methods(functions)together. Class is a collection of data members and methods. Object is an instance of a class. class is only declaration.While object is actual creation of memory space for that declaration. ex:Employee is a class and ram is aobject of this class.