subject

Create a parent class called “Home.” This should have methods and variables to access and change the power status and the room they are located in. Create Child Classes called “Entertainment,” “Appliance,” “Security,” and “Light.” These should all inherit from “Home”. Create Child Classes that inherit from “Entertainment” that include “Music” and “Television”. Create Child Classes that inherit from “Appliance” that include “HVAC,” “Oven,” and“Refrigerator”. Create Child Classes that inherit from “Security” that include “MotionSensor” and “Camera”.Each class should have constructors and member variables. Keep variables private; only allow
methods to access them. Populate each class with relevant functionality. Be
sure to locate methods in the appropriate hierarchy. If functionality is common across all “Entertainment” devices, then put that in the “Entertainment” class. If something is unique to “Television,” then put it in that class. Instantiate at least one instance of the following in your main program: Light, Music, Television, HVAC, Oven, Refrigerator, MotionSensor, and Camera. This should be in a new file called "Home. java”. As with the previous assignment, allow users the ability to input specific commands. You should have at least 12 distinct commands of your choosing; however, one of them should be “Help.” When the user types “Help,” have the system print out all commands for reference. Each command should control one or more devices.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
You know the right answer?
Create a parent class called “Home.” This should have methods and variables to access and change the...
Questions
question
English, 19.12.2020 01:00
question
Social Studies, 19.12.2020 01:00
question
Mathematics, 19.12.2020 01:00
question
Social Studies, 19.12.2020 01:00
question
Mathematics, 19.12.2020 01:00
question
Geography, 19.12.2020 01:00
question
Business, 19.12.2020 01:00
Questions on the website: 13722367