Object Oriented Programming
11
Class: Object Types
•
C++ uses
classes
and
structures
to
define objects
•
A C++
class
is an object type.
•
When you create the definition of a
class you are defining the attributes and
behavior of a new type.
–
Attributes are data members.
–
Behavior is defined by methods.