(a) "Overloading is a type of polymorphism". Elaborate the given stat…
Previous year question for Object Oriented Programming Using C++.
Question
(a) "Overloading is a type of polymorphism". Elaborate the given statement with the help of suitable example using the concept of function overloading. (10)
(b) Write a program in C++ to declare the examination results. Design three classes : Student, Exam, Result. The Student class has the data members such as Rollno and Name. Create the class Exam by inheriting the Student class. The Exam class adds the data members representing the marks scored in six subjects. Derive the Result from Exam class and it has its own data members such as Total_marks. What type of inheritance this model belongs to. (10)
- Year: 2022
- Subject: Object Oriented Programming Using C++