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
#include
What are functions in oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is methods in oop?
which feature are not hold visual basic of oop?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Why do pointers exist?
How to use CMutex, CSemaphore in VC++ MFC
What is constructor in oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Can we override main method?
can we make game by using c
Can a varargs method be overloaded?
Why do we use polymorphism?
Is oop better than procedural?