What is Class

What is Class?

E

Expert

Verified

Class defines all features of objects, as well as the methods that implements the behaviour of the member objects. It is comprehensive data type that represents a blue print of objects. It is a template of objects.

A class can also be defined as the main building block of OOP. It also serves as the template that defines the properties, state, and behaviours which is common to certain group of objects.

A class may contain data and behaviour of an entity. For instance, aircraft class can contain data, such asmodel number, colour, category and behaviour, like speed, duration of flight and number of passengers. A class inherits the data members and behaviours of other classes by extending from them.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.