Question: please create a java program that base on the picture. also include UML diagram for each class. and a description of the program in your

 please create a java program that base on the picture. also

include UML diagram for each class. and a description of the program

please create a java program that base on the picture. also include UML diagram for each class. and a description of the program in your own words.

1- Create a dass called Mobile Device with a poivate fidld device Type that will be initialized to the string 2- Create another class SmartPhone that will inhenit MobileDevice, with a private field deviceType Mobile Device for in the constructor Include the coresponding setter and getter methods nitialized to the string Smart Phone Your Name in the constructor, and oveide the getter method by retuming the string: "Mobile Device > Smart Phone CHint: To obtain this result make a call to the super class getter method) Smart Phonent To obitain this esalt makr a call to the super class getter 3 Create three more classes: Android, iPhone, and Windows Phone that will inherit SmartPhone, have a private field device Tpe initialized to the string "Android "iPhone" or Windows Phones correspondingly in the constructor, and override the getter method returning the corresponding string Mobile Device - Smart Phone iPhone for iPhone, "Mobile Device Smart PhoneAndroid for Android", or Mobile Device > Smart Phone Your classes must follow this hierarchy Windows Phone" for Windows Phone. MobileDevice SmartPhone Android iPhone Windows Oace you create the dasses, run the following dient code and report your output public class MobileDeviceClient pnblie statie void main (Stxsng sxRs) t TODO Auth-generated aethod stub Android myAndtoad new Android KindowsPhone mykindowsPhonee HandossPhone.) Syatem.out.rintia (muMobileDevace.setbegicetipe System.out.pxintin (aySmarsPhone gstDeiriceType 0) system.ouapzintin v Phone.getDesacet

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!