What is the difference between class and object?
Answer Posted / johncz
Class is a template for the custom type that can be used as
variable. It defines types of data that class contains and
the set of functions to manipulate those data types. It is
just a recipe to be used when class is instantiated.
Object is an entity created using class template. Such an
object occupies computer’s memory. Each object of the class
is independent entity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
can inline function declare in private part of class?
What are the three parts of a simple empty class?
What are the data types in oop?
What is a class in oop?
What is the important feature of inheritance?
What is an example of genetic polymorphism?
hi all..i want to know oops concepts clearly can any1 explain??
What is oops and why we use oops?
What is the example of polymorphism?
When not to use object oriented programming?
Why polymorphism is used in oops?
What does no cap mean?
Can a destructor be called directly?
What is abstract class in oops?
What is the purpose of polymorphism?