- Create A Class Student With Name Age And Roll Number As Data Members And A Member Function To Read The Data Define Ano 1 (183.66 KiB) Viewed 44 times
Create a class student with name, age and roll number as data members and a member function to read the data. Define ano
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Create a class student with name, age and roll number as data members and a member function to read the data. Define ano
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+