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 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 24.06.2019 19:30
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
question
Computers and Technology, 24.06.2019 22:50
Which of these might be an example of an advertiser's target group? a.people who have no access to media b.people the advertisers know nothing about c. people who watch a variety of tv shows d. people who live in the same region of the country
Answers: 2
You know the right answer?
Write a class house that represents a house. it should contain instance data: house number, street,...
Questions
question
Social Studies, 12.04.2021 22:00
question
Business, 12.04.2021 22:00
Questions on the website: 13722363