The class members are referenced using dot (.) operator. The public data members of a class can be accessed using dot (.) operator using objects of that class.
For example, objectname . datamember;
The member function is invoked by a object name dot operator and member function name.
For example, obj1.getdata();