1- Electronics Class: root/parent/super class a- Electronics method: receives arguments to initialize price and maker. b

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1- Electronics Class: root/parent/super class a- Electronics method: receives arguments to initialize price and maker. b

Post by answerhappygod »

1- Electronics Class: root/parent/super class
a- Electronics method: receives arguments to initialize price and
maker.
b- Maker: means company or country.

2- Tv Class: extends Electronics class
a- Electronics method: receives arguments to initialize price and
maker.
b- RemoteControl method: prints out the following sentence: "The TV
made by (maker) which costs (price) is operated by remote control
only.”

3- KitchenWare Interface: Create the interface

4- Oven Calss: extends Electronics class and implement KitchenWare
interface
a- Add String variable (cookWay) as instance variable to the class.
(Cook way means: uses heat or air or oil to make the food
cooked)
b- energySource: means electricity or gas.
c- Oven method: receives arguments to initialize energySource,
cookWay, price and maker.
d- getEnergySource method: return energySource as String.
c- cookMethod method: prints out the following sentence: "The Oven
made by (maker) which costs (price) is using (energySource) to cock
food using (cookWay).”

5- On the Main class, create Tv object and use it to call
remoteControl method. Create Oven object and use it to call
getEnergySourcs and cookMethod. Hint: Use your own values. (For
example: A Tv made bu LG that costs 2000s.r.) (For example: An Oven
that made by Gelmgas that costs 3500s.r. and use electricity as
energy source to cook using heat)
1 Electronics Class Root Parent Super Class A Electronics Method Receives Arguments To Initialize Price And Maker B 1
1 Electronics Class Root Parent Super Class A Electronics Method Receives Arguments To Initialize Price And Maker B 1 (94.53 KiB) Viewed 13 times
Use the following UML Diagram to write a Java program that consists of multiple classes: 4 Electronics + Price: int + Maker: String <<Interface>> + electronics () KitchenWare +getEnergySource (): String + cockMethod () Oven + energySource: String + oven() getEnergySource (): String + cockMethod() Tv + tv () + RemoteControl ()
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply