Create a class student with name, age and roll number as data members and a member function to read the data. Define ano
Posted: Fri May 20, 2022 6:14 pm
Create a class student with name, age and roll number as data members and a member function to read the data. Define another class academic that inherit the class student, with data member rank and a member function to read the rank. Create another class medical that inherit the class student and it has a data member blood group and a method to read the value of bloodgp.create the objects for the class academic and medical and display the respective members. For example: Test Input Result 1 JAMES NAME : JAMES 17 ROLL : 101 101 AGE : 17 5 RANK : 5 KANNAN NAME : KANNAN 202 ROLL 202 18 AGE 18 0+ BLOOD GP 0+ 2. . STEPHEN NAME: STEPHEN 102 ROLL 102 18 AGE 18 3 RANK 3 KUMAR NAME KUMAR 204 ROLL 204 17 AGE 17 B+ BLOOD GP B+