Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please i need some help with my programing assigment in Java You are given a specification for some Java classes as follo A building has
Please i need some help with my programing assigment in Java
You are given a specification for some Java classes as follo A building has a number of floors, and a numbcr of windows. A house is a building. A garage is a b uilding A room has a length, width, a floor covering, and a number of closet You can never crcate an instance of a building, but cvery object that is a building e floor space. ust have a method that calculate .c., the Building class is abstra ct, and an abstract method. A house has a mber of bathroom and a ay of Rooms A house has ethod that returns ze of the R e average A Garage can hold some number of cars, and it may bave a ceruent lloor or a gravel noor. A garage has a length and a width. (Don use the Room ass as a membe of the Gara e class. Object Building Room House Garage 2. Implement the specification. You must use the following mechanisms correctly Inheritance S a on-has a Constructor methods Accessor/mutator methods getters, setters Arrays of object Passing arrays of objects to methods Abstract classes and method Access modifiers public privatc ight not need protected, a you should never usc defa to String methods the super keyword method overriding nterfaces generics are introduced polymorphism using inheriance, and interfac Include a test clas at has a main method. This test program will make instances of your classes and output the text representation of the objects using the toStringO methods There sh ould enough comments the output so that is easy to see which classes are being tested. n your test clas s, create an ArrayListStep 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