July 8, 2021 in C and CPP
Abstract class provides a base upon which other classes may be built.
b) Abstract class provides a base upon which other classes may be built. Justify.
July 8, 2021 in C and CPP
b) Abstract class provides a base upon which other classes may be built. Justify.
July 8, 2021 in C and CPP
a) Declare a class matrix and write a function to read all the elements of a matrix of
size m x n from the keyboard for creating objects.
July 8, 2021 in C and CPP
d) List some of the special properties of the constructor functions. In which direction
constructors and destructors are invoked when base class is one and derived class are
two?
July 8, 2021 in C and CPP
c) Write a programme that reads elements of an array of ten elements and displays the
largest and smallest in that array.
July 8, 2021 in C and CPP
a) What is inheritance? What are the types of inheritance? How can you initialize base
class member through a derived class object?
July 8, 2021 in C and CPP
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
July 8, 2021 in C and CPP
b) Discuss the function overloading and its importance in C++.
July 8, 2021 in C and CPP
a) Discuss the salient features of C++ in comparison to C. Explain why object oriented
program is more robust than structured program.
July 8, 2021 in C and CPP
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.