Question: Lab4 Instructions Create a constructor class named Lease with fields that hold an apartment tenant's name, apartment number, monthly rent amount, and term of the

 Lab4 Instructions Create a constructor class named Lease with fields that

Lab4 Instructions Create a constructor class named Lease with fields that hold an apartment tenant's name, apartment number, monthly rent amount, and term of the lease (in months). Have the constructor initialize the rent amount to 800 and the term to 12. Include methods to set and get each of the fields. Include a nonstatic method named addPetFee( that adds $25 to the monthly rent amount and calls a static method named explainPetPolicy that explains the pet fee Create a program called TestLease to input a tenant's information along with the pet fee/ Save the classes as Lease.java, TestLease.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!