Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please I want the code in java Question.3a (16 Mtarke) Write a complete Anve program accoriling to the following specinicationt the progy am involves three
please I want the code in java
Question.3a (16 Mtarke) Write a complete Anve program accoriling to the following specinicationt the progy am involves three classes (Person, Appart and Room) The following diagram deplcts the relstionuhilps between the classes. Part 1 Room Class: (3 points) Atributes: String name - Methods Constructor with parameters Copy Constructor Getter and setter Appart Class: (6.5 points) - Attributes: Int ID - Methods Constructor with parameters Copy Constructor Addrooms (..):itaddstheroomr to the Appart, it returns 1 if the room is added otherwise it returns 1 DisplayAppart(): it displays the apartment information rson Class :( We suppose that the Constructor with parameters is implemented) ( 4 points) Attributes: String name Methods Addapprt(...): it adds the Apprat A to the person, it returns 1 if the room is added otherwise it returns 1 DisplayAllAppart(): it displays all apartments for a personStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started