what is different between object and class?
Answers
Answered by
12
The difference is simple and conceptual. A class is a template of object. An object is a member or an instance of a class
as7069:
thk h
Answered by
15
Answer:
The differences between object and class are:
1) Class- It is a representation of an abstraction only.
Object- It is a real and unique entity having some characteristics and behaviours.
2) Class- It is an object producer and hence called a blueprint for a set of objects.
Object- It is created with the use of the new operator.
3) Class- It is known as object factory.
Object- It is known as an instance of a class.
4) Class- It can be declared for one time.
Object- It can be declared several times.
Explanation:
Object have a unique identity, some definitive state or characteristics and some behaviour.
Similar questions