Define objects, class in java
Utilisateur anonyme
Class - A logical entity which defines the structure, state and behaviour of the data which consists of functions and methods of an object. Example:- A blueprint of a house. Object is a real entity which has it's own state and behaviour and it occupies memory(specifically heap memory), It is an instance of a class. It is created by the blueprint of a class. Example:- A house is created by the blueprint and it is a real-world entity occupying space.