Daniel B. answered 12/15/22
PhD in Computer Science with 42 years in Computer Research
The keyword "this" appearing in the body of a class C is a reference to an instance of class C.
It is good practice to declare instance variables private, so that only the class may use them, and
to declare getters and setters (a.k.a Accessors and Mutators) as public, for easy access.
There is a typo in the toString() method involving "%n". It should be