What is the difference between an object and a class?

Answers were Sorted based on User's Feedback



What is the difference between an object and a class?..

Answer / ven

An Object is an instance of the class

Is This Answer Correct ?    11 Yes 0 No

What is the difference between an object and a class?..

Answer / manas

a class is a datatype that abstratcs data and implementations
while an object is an instance of the class which wraps up data. An object has identity, state and behavior

Is This Answer Correct ?    2 Yes 0 No

What is the difference between an object and a class?..

Answer / nk

Object is a runtime entity of a class

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More OOPS Interview Questions

What is a friend function & its advantage?

1 Answers   MIT,


Can a destructor be called directly?

0 Answers  


write a program to print * * * * * *

2 Answers  


Why is there no multiple inheritance?

0 Answers  


What is encapsulation and abstraction? How are they implemented in C++?

0 Answers   Agilent, ZS Associates,


what is virtual function?

26 Answers   Aspire, HP, Infosys, RoboSoft, TCS,


I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?

3 Answers  


1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.

1 Answers   Tech Mahindra,


What is oops and its features?

0 Answers  


What is Agile methodology?

20 Answers   ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 Answers  


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  


Categories