A class defines the template or the definition of an object. It is used for creating objects at run time. It provides the data structure, provides initial values for the attributes, and methods that provide the logic for the intended behaviour of the object. The class does not consume memory at runtime. A class refers to a logical entity. E.g., a vehicle may be defined as a class.
Posted Date:- 2021-09-30 05:22:12