Definition C: - PabitraBhandari/2143-OOP-Bhandari GitHub Wiki

Class:

Definition:

Class in OOP can be defined as a user-defined data type which can be use in a program, that acts as an object constructor for creating objects.

Example Code:

class MyClass {       // The class
    public:             // Access specifier
    int Num;        // Attributes of the  class 
    string String;  
};

Source:

https://www.w3schools.com/cpp/cpp_classes.asp