Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i wan the code in java program: 1- class House a- a deafault constructor which set the numberOfLog to a default value and also call

i wan the code in java program:

1- class House

a- a deafault constructor which set the numberOfLog to a default value and also call the inherited class's default constructor.

b- a parameterized constructor which takes in parameter corresponding to the inherited class's instance variables, along with numbers of logs. it should make sure to set the value of the instance variable for both the inherited class and this class, and also check for valid values.

c- override the method printInfo. this should call the inherited class's printInfo along with also printing the number of logs.

2- using the following code and the class house created in question one; write a method return the house with the highest number of square feet given a specific number of rooms. the method should return a house and take in the number of rooms via parameters. if there is no house has that exact number of rooms then, the method should return null. also, before calling on any individual houses in the array of house, make sure it has been constructed.

3- using the following code and the class house created in the previous question; write a method that prints the information for all house's strictly over a given number of square feet. this method will return nothing, take in the number of square feet via parameters, and must check the values in instance variable houses. also before calling method on any individual in the array, make sure it has been constructed.

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

What are some potential ethical concerns related to Generative AI

Answered: 1 week ago

Question

What role does personal selling play in an IMC campaign?

Answered: 1 week ago