Question: Write a Java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable to hold a
Write a Java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable to hold a boolean value that is true if the grade is passing. Also, define a constructor that initializes this instance variable, an accessor method isPassing to return its value, and a method toString that returns the grade as a string. Finally, write a program to demonstrate the enumeration.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
LetterGradejava An enumeration of card suits enum LetterGrade A... View full answer
Get step-by-step solutions from verified subject matter experts
