What are Classes?A class is a blueprint or a template for an object. For example, a flat plan on paper with all details like no. of room, sizes, floors is a blueprint of the actual flat. Here the flat plan is a class and actual flat is an object.
Class members
Fields: Set of variables Constants: Set of constants Constructors: A method that initializes the class Properties: Set of data of an object Events: Methods fire on user action Methods: Set of functions of class Destructor: A method that is called when a class is destroyed
|