difference between class and object
Answer Posted / manoj kumar
class is a blueprint or template for creating objects.class
is imaginary.it does not exits in real world .
while , object is an entity with some characteristic and
behavior.it is a real world entity .
In oops ,object is an entity that can store data value and
has its interface through its function.
we can create an object like that:
classname objectname=new classname();
example :
Rectangle s=new Rectangle();
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 4 main oop principles?
What is difference between oop and pop?
What is polymorphism used for?
Why is destructor used?
What is the fundamental idea of oop?
what type of question are asked in thoughtworks pair programming round ?
How is class defined?
What language is oop?
What is polymorphism explain?
Why multiple inheritance is not allowed?
hi all..i want to know oops concepts clearly can any1 explain??
What is encapsulation example?
What is multilevel inheritance in oop?
State what is encapsulation and friend function?
write a C++ program for booking using constructor and destructor.