Task 2 of 5 · 0 solved · 5 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

11.3 Records — declare a record

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Declare the record Student holding a name and a score.

The body stays empty: the header alone gives you the constructor, the accessors name() and score(), a toString and an equals.

The program prints Ada, 90, Student[name=Ada, score=90], true.

Your solution