Provide the toString method so that when a Quiz object is printed it gives the following Output ID: //id of quiz here Topic ://The topic of the quiz here Total Marks :// marks Obtained Marks :// marks obtained here Percentage // the percentage of marks and the % symbol Also provide a separate Main class that reads the values for the instance variables and creates an instance of the Quiz class
Comments
Leave a comment