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, 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
Get step-by-step solutions from verified subject matter experts
