Write an interface called exam with a method passint mark


Write an Interface called Exam with a method Pass(int mark) that returns a Boolean. Write another Interface called Classify with a method Division(int average) which returns a string. Write a class called Result which implements both exam and Classify. The Pass method should return true if the mark is greater than or equal to 50 else false. The Division method must return "FIRST" when the parameter average is 60 or more, "SECOND" when average is 50 or more but below 60, "NO DIVISION" when average is less than 50.

Request for Solution File

Ask an Expert for Answer!!
Physics: Write an interface called exam with a method passint mark
Reference No:- TGS01294286

Expected delivery within 24 Hours