Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 person

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What are the margin requirements for a CFD contract?

Answered: 1 week ago