subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Write a class house that represents a house. it should contain instance data: house number, street,...
Questions
question
Mathematics, 23.08.2020 03:01
question
Computers and Technology, 23.08.2020 03:01
question
Mathematics, 23.08.2020 03:01
question
Chemistry, 23.08.2020 03:01
question
Mathematics, 23.08.2020 03:01
question
History, 23.08.2020 03:01
question
Physics, 23.08.2020 03:01
question
Geography, 23.08.2020 03:01
question
Mathematics, 23.08.2020 03:01
question
English, 23.08.2020 03:01