Computers and Technology

Write a class house that represents a house. it should contain instance data: house number, street, town, year when the house was built. define house’s constructor to accept and initialize all instance data. include getter (accessor) and setter (mutator) methods for all instance data. provide a tostring method that returns one line description of the house as string. provide method ishistoric() that returns a boolean indicating if the house was older than 50 from now or not. create a testhouse class with main method in it. within main method instantiate three house objects of your choice. at least one home should be historic. for each object invoke methods tostring and ishistoric, and also invoke different pair of getter and setter methods. provide appropriate print statements to explain the result of each invoked method to user.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:40, cutybrain6054
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, manlyman31
Selling a product through an electronic medium is
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, carcon2019
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
image
Computers and Technology, 24.06.2019 03:00, SiegeHatake4534
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
Do you know the correct answer?
Write a class house that represents a house. it should contain instance data: house number, street,...

Questions in other subjects:

Konu
Mathematics, 20.02.2020 04:04