Answer to Question #289668 in C++ for Hamza Aftab

Question #289668

Design a class named Record that includes

· A data member named rollNo for student roll number

· Two data fields i.e. course1Name and course2Name of type string

· A parameterized constructor to initialize rollNo, course1Name, and course2Name data fields

· Three getter functions to get the value of rollNo, course1Name, and course2Name, respectively

Derive a class named CourseRecord inherited from Record class and contains

· Two additional data members i.e. marksCourse1 and marksCourse2

· A parameterized constructor to initialize its own data fields along with the inherited data fields

· Two getter functions that return the value of marksCourse1 and marksCourse2, respectively

Derive a class named CourseResult inherited from class CourseRecord and has

· A data field named totalMarks

· A function named marksObtained that returns totalMarks (i.e. marksCourse1 + marksCourse2) of a student.



1
Expert's answer
2022-01-23T10:28:07-0500
Dear Hamza Aftab, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog