Consider an example of declaring the examination result. Design three classes: Student, Exam, and Result. The Student class has data members such as those representing roll number, name etc. Create the class Exam by inheriting the Student class. The Exam class adds fields representing the marks scored in six subjects. Derive the Result from the Exam class and it has its own fields such as total_Marks. Write an interactive program to model this relationship. A program in java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Consider an example of declaring the examination result. Design three classes: Student, Exam, and Result. The Student class has data members such as those representing roll number, name etc. Create the class Exam by inheriting the Student class. The Exam class adds fields representing the marks scored in six subjects. Derive the Result from the Exam class and it has its own fields such as total_Marks. Write an interactive program to model this relationship.

A program in java

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT