Skip to content
This repository was archived by the owner on Aug 5, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Question 6

Write a C++ program to design a student class representing student roll no. and a test class (derived class of student) representing the scores of the student in various subjects and sports class representing the score in sports. The sports and test class should be inherited by a result class having the functionality to add the scores and display the final result for a student. Demonstrate the concept of Virtual base class on Hybrid inheritance.

Code: https://github.com/ItsTatsuya/cpp-lab-cycle/blob/53d2a8efa3f2276abfadd909e0465c0217ae55b3/Lab%20Cycle%202/Question%2006/code.cpp#L1-L80

Output:

image