Task 7 Problem Statement
Create a class named Student. Define the method getDetails( ) to set values for name and roll no of student. Define another class Test which contains the method getMarks( ) to get the marks of student. Define an interface Sports and initialize weightage marks for sports. Create a class Results, which extends the class Test and implements the interface Sports. Using objects, invoke the appropriate methods and display the results.
Input Format
Line 1: Input Student Name
Line 2: Input Roll Number
Line 3: Input Marks1
Line 4: Input Marks 2
Line 5: Set sports marks
Constraints
0<=Marks<=100
Output Format
Student Name: Devi
Roll Number: 1005
Marks 1: 98
Marks 2: 97
Sports marks: 97
Total Marks: 292
Answers
Answered by
0
Answer:
Kya h ye
ahajdiejnebe
Explanation:
bbbdwhwejp2lwkqlqlzjnwkskrnbsdbdu
Similar questions