Computer Science, asked by prateek2705, 1 year ago

write any 4 points of differences between class and object in object oriented programming

Answers

Answered by BrainlyAyush10
1
A class does not exist in reality while an object exist in reality.
A  class does not exist in the memory of the computer while an object exist in the memory of the computer.
An object is an instance of a class while a class contain many such objects
Answered by cyrusbishop
2

Answer:

The 4 points of difference between class and object in object oriented programming 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.

Similar questions