Question: Part A Implement the class named Lease with fields that hold an apartment tenant's name ( name ), apartment number ( aptNumber ), monthly rent
Part A
Implement the class named Lease with fields that hold an apartment tenant's name ( name ), apartment number ( aptNumber ), monthly rent amient (rent ), and term of the lease in months ( term ).
Task
Implement the Lease class and its member variables.
Include a default constructor that initializes the name to XXX, the apartment number to 0, the rent to 1000, and the term to 12.
Task
Define the Lease class constructor to set the proper default values for each field in the Lease class.
Include methods to get and set each of the fields. Include a nonstatic method named addPetFee ) that adds $10 to the monthly rent value and calls a static method named explainPetPolicy) that explains the pet fee.
Tasks
Include the set and get methods for the Lease class.
Implement the addPetee() method in the Lease class.
Implement the explainPetPolicy() method in the Lease class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
