Create a class student with name, age and roll number as data members and a member function to read the data. Define ano

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

Create A Class Student With Name Age And Roll Number As Data Members And A Member Function To Read The Data Define Ano 1
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 45 times
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+
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply