Classes

What are classes?  Classes allow the programmer to create objects with attributes and behaviors.  Attributes are variables or
data members.  Behaviors are functions.  The name of the class can be used to declare objects of that class.  For example if you have a class called rectangle, the rectangle class can have objects of it.  A class can have variables and/or functions that can be accessed to a part of a program that has an object of that class. To do this these variables and/or functions must be declared public.  A class can have variables and/or functions that are visible to friend functions and other members of the class.  Variables in a class need to be made private.