S. No.ClassObject1Class is used as a template for declaring and creating the objects.An object is an instance of a class.
What is the difference between class and object?
A class is a group of similar objects. Object is a real-world entity such as book, car, etc. Class is a logical entity. Object is a physical entity.
What is an object with example?
An object is an entity having a specific identity, specific characteristics and specific behavior. Taking a car as an example of an object, it has characteristics like colour, model, version, registration number, etc. It has behaviours like start the engine, stop the engine, accelerate the car, apply the brakes, etc.