Page 84 - Modular_V2.0_C++_Flikpbook
P. 84
Recap
Object-oriented programming is a programming paradigm that focuses on objects instead of
routines or functions.
An object is a real-world entity like car, dog, pencil and computer.
A class can be defined as a user defined blueprint or prototype that is used to create objects.
Data abstraction refers to a process of hiding the complex or unnecessary data and show only
the data essential for the user.
Encapsulation refers to a process of binding data and function together into a single unit like
a capsule.
Inheritance allows a class to acquire or inherit all the properties and behaviors from its parent
class.
The term polymorphism is made up of two words “poly" and “morph" which means many forms.
Exercise
A. Tick ( ) the correct option.
1. Which of the following is an example of POP language?
a. FORTRAN b. ALGOL
c. COBOL d. All of these
2. Which of the following is a principle of OOP language?
a. Data Abstraction b. Function
c. Procedure d. None of these
3. The object-oriented programming is a programming paradigm that focuses on ……………………….
instead of routines or functions.
a. Objects b. Procedures
c. Classes d. Methods
4. Which of the following is an example of an object?
a. Animal b. Fan
c. Vehicle d. Pencil
5. The term polymorphism is made up of two words which are: “poly" and ………………………. .
a. morph b. phism
c. form d. morphism
6. ………………………. overloading is the process of using an operator for more than one action.
a. Function b. Operator
c. Both a and b d. Method
82
Touchpad MODULAR (Ver. 2.0)

