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 is the advantage of oop over procedural language?
What language is oop?
What is the difference between a constructor and a destructor?
How do you use inheritance in unity?
How do you achieve polymorphism?
What is the real life example of polymorphism?
can we make game by using c
can inline function declare in private part of class?
What is inheritance in simple words?
Which language is not a true object oriented programming language?
What is polymorphism in oops with example?
Is this job good for future? can do this job post grduate student?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
any one please tell me the purpose of operator overloading
Is abstract thinking intelligence?