Computer Science, asked by Anonymous, 1 year ago

what is difference between class and object?

Answers

Answered by azhar78692
5
Class can be inheritanced but object can't be inheritanced.
Answered by cyrusbishop
9

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:

An object can be thought of as an entity having a specific identity, specific characteristics and specific behaviour.

Similar questions