🎓 Student Result System
Course: Object-Oriented Programming in JAVA Lab (BCA39109)
This project implements a student grading and result calculation system. It demonstrates how Java handles multiple inheritance using a combination of class extension and interface implementation, mapping exactly to the provided class hierarchy diagram.
- Interfaces & Multiple Inheritance: Uses the
Examinterface alongside theStudentbase class to create a compositeResultclass. Java does not support multiple inheritance with classes, so this pattern is the standard workaround. - Inheritance (
extends): TheResultclass inherits attributes (Name, Roll No, Marks) and behaviors (show()) from theStudentclass. - Interface Implementation (
implements): TheResultclass fulfills the strict contract of theExaminterface by defining the calculation method. - Encapsulation: Class variables are kept
private, withprotectedgetters used to allow secure data access by the subclass.
Ensure you have the Java Development Kit (JDK) installed.
- Open your terminal or command prompt.
- Navigate to the directory containing the file.
- Compile the Java code: