Q & A by Maninder Singh

Question:

QUESTION: What is a class and an object in OOP?

Answer:

A class is like a blueprint or template that defines the structure and behavior of objects. An object is like an instance of a class, with its own data and behavior .