labs / tiddlers / content / review / java_exercises / _Review_Domain
@Mark George Mark George on 15 Jul 2021 322 bytes Add review exercises

Create a domain class that represents a contact.

  1. Add private fields for name, address, and phone number to the class.

  2. Add getters and setters for these fields.

  3. Add a constructor that will initialise the three fields.

  4. Override the toString method so that it will return the values of the three fields.