We know that C++ is an OOP language that is code of C++ may Contains classes there is a main Method which also Reside in Class.
if any one wants to use any data or member functions from Class then first We have to create an object of that class then with the help of dot operator we can call or use any data member or member function from the class, C++ allows all OOPS Concepts like Data abstraction ,Inheritance, Polymorphism and Data Encapsulation all these are Achieved only you will Create Code in the Form Classes
A Class Contains
1) Data Members or Simply Called As Variables
2) Member Functions or Simply Called as Functions