What is inheritance?

a) What is inheritance? What are the types of inheritance? How can you initialize base
class member through a derived class object?

Write a C++ program to declare a class called ‘person’ having data members- ‘name’

c) Write a C++ program to declare a class called ‘person’ having data members- ‘name’,
‘age’ and ‘salary’ of the appropriate types. Write a constructor to define the value of data
variables. Also write a method called display ( ) that will display the current values of
data variables. Create two objects of this class & set their data values as follows:
1. Name: Rakesh, Age: 25, Salary: 20000.00
2. Name: Mitul, Age: 28, Salary: 25000.00

A function prototype tells the compiler the return type, name and ________.

A. Data hiding B. >> C. Declaration
D. Polymorphism E. Definition F. Arguments
G. Catch H. Address I. Pointer
J. Private K. << L. Public
M. Ordinary N. Operator O. Constructor

4.1 A function prototype tells the compiler the return type, name and ________.
4.2 ________ is the symbol for insertion or put to operator.
4.3 Memory gets allocated during________ of a function.
4.4 Principal objective of OOP is ________.
4.5 C++ features which enables you to initialize an object on creation is called ________.
4.6 The keyword ________ is used for an overloaded operator function definition.
4.7 ________ type of declaration of a base class enables an object of a derived class to
access member functions.
4.8 The symbol & is called________.
4.9 Derived function uses a virtual function by________.
4.10 C++ language uses ________ keyword to handle exception.