F2010 C++ LANGUAGE: 1.1 Fundamentals of Object-Oriented Programming (OOP)
F2010 C++ LANGUAGE: 1.1 Fundamentals of Object-Oriented Programming (OOP)
Presentation 1
Revision…
Drive
Steering wheel
Indicator
Wheel
Acceleration
Activity 5.1.1
2. Write down the classname, the characteristics and
the functions of the class Car in relevant boxes of
the class diagram given.
Classname
Characteristics
Functions
Features of OOP
• Data Encapsulation
• Data Abstraction
• Inheritance
• Polymorphism
Data Encapsulation
Car
Classname
Internal Mechanical Parts
Steering
Data Members
Wheels
Member Functions
Turn() Member Functions
Acceleration()
Data Abstraction
Automobile
Engine
Wheels
Move()
Car Car
CC Rating B.H.P
Fuel type Steering type
Activity 5.1.2