Question:
What is the difference between an object and a class?
Answer:
Class is a userdefined datatype with data members and member functions which can be public or privately accessed depending on access specifiers.<br><br>Objects are instances of classes which identifies the class propeties.A particular class can have it's own class which makes it identifying it's object.<br> <br> <br> Source: CoolInterview.com
Class is a collection of data members and member functions.And how that data members and member functions are accessed?The ans is through OBJECT.Object is nothing but the real time entity where as class is the user defined data type. Source: CoolInterview.com
Answered by: Sangithapriya | Date: 12/8/2009
| Contact Sangithapriya
Object is the real time entity where as the classe is the collection of data members and member function
Regards Nicku Source: CoolInterview.com
Answered by: nicku | Date: 8/16/2010
| Contact nicku
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|