Question: Create a class Apartment. The class has the following instance variables, constructor, and methods. . A String instance variable m_city. An int instance variable

Create a class Apartment. The class has the following instance variables, constructor,

 

Create a class Apartment. The class has the following instance variables, constructor, and methods. . A String instance variable m_city. An int instance variable m numBedRooms. An int instance variable m numBathRooms. A double instance variable m_monthlyRent. A constructor that takes four parameters and sets the values of the instance variables accordingl A method displayApartment ( ) that takes no parameter and returns nothing. The method displays the information of the apartment in a format of your design. Build a test driver by creating a class TestApartment to test the functionality of the class Apartment.

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!