Interviews5 answers
what is difference between class and object
5 Answers
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
Umar AliPosted Sep 1, 2012, 8:22 AM EDT
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.
Akkiraju IvaturiPosted Aug 5, 2012, 5:15 PM EDT
Class contains data types and member functions.Object is reusable , we access class data through object
LOKESH CHENNAMSETTIPosted Jun 30, 2012, 10:02 AM EDT
Class is user defined data type it contain data member and funciton.
object is real time entity .
ranveer singhPosted Jun 19, 2012, 2:35 AM EDT
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.
Farukh MujawarPosted Jun 15, 2012, 10:00 PM EDT
