Chapter - 1: Intro to OOP

Fill in the Blanks:


B
Sections
1
Exercises

(a) The two major components of an object are ____ & ____.
ans: member variables, member functions

(b) The ability of a function or operator to act in different ways on different data types is called ____.
ans: Polymorphism

(c) The process of building new classes from existing ones is called ____.
ans: Inheritance

(d) If class A inherits its properties from class B, then A and B are known as ____ class and ____ class, respectively.
ans: Derived/Child, Base/Parent

(e) Pascal and C are ____ languages, whereas C++ is ____ language.
ans: procedural, object-oriented


© 2021 Garbage Valuegarbage value logo