Electrical and Computer Engineering
12 of 29
UAH
CPE 112
What are Objects?
•An object is a collection of data together with associated operations.
•In object-oriented programming languages, a class is a programmer-defined data type from which objects are created.
•iostream defines the classes istream and ostream and declares cin and cout
–istream cin;
–istream cout;
•string is also a class.