Object, Class And Their Difference.

Q11. What is an object? What is a class? How is an object different from a class?

Ans. Object is an identifiable entity with some characteristics and behavior.

A Class is a group of objects that share common properties and relationships.

For example, we can say ‘bird’ is a class but ‘parrot’ is an object.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: