Question: Java Implement the dass named Leass with fields that hold an apartment tenantis name ( nave ). apartment numbet (aptkeber ), monthly rent amount (

Java
Java Implement the dass named Leass with fields that hold an apartment
tenantis name ( nave ). apartment numbet (aptkeber ), monthly rent amount

Implement the dass named Leass with fields that hold an apartment tenantis name ( nave ). apartment numbet (aptkeber ), monthly rent amount ( rent) ) and teem of the lease in months (tem) Task Implement the Lease class and its member variables. Inelude a defauit constructor that initalites the name to x0x. the apartment number to 0 the rent to 1000 and the term to 12 . Task Define the Leas clas constructor to set the proper default values for each field in the tease clast Include methods to get and sot each of the heldsiliclude a nonstatie method named oddpotFeo() that adds $10 to the monthy rent value and cali a statio method named explainPetpolicy() that explains the pet fee: Tasiks Inciude the set and get metheds for the Liate clasi. Implement the add otFeo() method in the Lease class. Implement the explalnpotrolicy() method in the Loase class. lesse 1. leasin. lesie2, and te ase4. Tack Create the lestitabe class with a rate() decluring lowe Lassi obiests. Create a getbatak) methed that prompta a uner fer values fer each feld for a leate ibhd return a newly constructed Lesse object to the nain() mathed ntere it a atsighed bo are of nalif() 'i fust three teste objecte. Do nat prompt the utde for valset for the foumh laspe object, but iet it hoid the defruit valuek. Task Detine the futala() mathod to cotim a new laise obect based co vaer plorides movit. Ahec the four Loase ociects have been absighed valuth paw the leasel object ta a Mheival uri () mathod inat deplaye the date the date aheuld te dsplayed in the following formit. agan and ceefien that the pet tied hat bedn wdded ba the tart. hold the valupt you nupol ed as irput and ene holds the constructer didaut veluet

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!