July 8, 2021 in C and CPP
What are input and output streams? Describe various classes available for file operations.
d) What are input and output streams? Describe various classes available for file
operations.
July 8, 2021 in C and CPP
d) What are input and output streams? Describe various classes available for file
operations.
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++.