Question: Java please Buyer Class: Implement a class called Buyer that represents a client of a real estate agency. Each Buyer object should keep track of
Java please


Buyer Class: Implement a class called Buyer that represents a client of a real estate agency. Each Buyer object should keep track of its own name, address, phone number, and the mls number of the home purchased (assume only one has been purchased). As a result, the Buyer class defines four private instance fields or variables: name, address, and phoneNumber (all of type String) and a mlsNumber which is an int. Implement the following instance methods in the Buyer class: public methods used to access and protected methods used to modify the instance fields or variables, i.e, get and set methods, respectively toString0 method that returns an instance of a String containing the Buyer object's name and address, e.g., "Laura Wade, 123 main street, Highland, IN". a constructor that accepts a String for the name of the Buyer object, a String for the address of the Buyer object, and a String for the phone number of the Buyer object. a . a zero-argument constructor (i.e., one that takes no arguments) that sets the Buyer object's name to "name unknown", the Buyer object's address to "address unknown", and the Buyer object's phone number to "phone number unknown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
