|
Two Abilities of the C++ Programming Language
1. Structured Programming (procedural programming)
-
It is based on C language.
-
A top-down structure is built around functions.
(The algorithm can be written by a flow chart.)
2. Object-Oriented Programming (OOP)
-
A house is to a
blueprint as an object
is to a class.
-
OOP allows complex programs to be developed using simpler constructions,
called objects.
-
It is built around classes.
-
The relation between class and object is like
vehicles and your specific car.
-
We learn about things by studying their characteristics and behavior.
-
For example, a class of vehicles:
-
Characteristics (attributes, data members):
engines, wheels, transmissions, … and so on.
-
Behavior (function members): acceleration,
deceleration (braking), and turning.
-
Abstract data types allow you
to work with data objects without concern for how the data objects are
stored inside the computer or how the data operations are performed inside
the computer.
3. Three Characteristic
Features of Object-Oriented Languages.
(click on it)4. Example |