In this hour you learned how to create new data types called classes. You learned how to define variables of these new types, which are called objects.
A class has data members, which are variables of various types, including other classes. A class also includes member functions, also known as methods. You use these member functions to manipulate the member data and to perform other services.
Class members—both data and functions—can be public or private. Public members are accessible to any part of your program. Private members are accessible only to the member functions of the class.