Class: – It is a blue print (structure) in which we bind or pack member variable, member function, constructor and destructor etc.

A class can have n number of member variables either of same type of different type. So we can also say that a class maintains the record.

Syntax: –

                Class Class_Name
                                Member Variable1;
                                Member Variablen;
                                Member Function1();
                                Member Functionn();

Ex: –

                class student
                                char *name;
                                int age;
                                long phone;

Note: – Class is an user define data type. Class has by default private access specifier.