Draw the uml diagram


Discuss the below:

Q1: Create a mutable class Phone with two integer data fields: areaCode and number. Have two constructors, "getter" methods, and "setter" methods for each data field and a toString method.

Q2: Derive a class cellPhone from class Phone that has two String data fields maker and service.

Q3: Derive a class landPhone from class Phone that has two data fields address and longDistance.

Q4: Derive a class cablePhone from class landPhone that has a data field cableProvider.

Q5: Write a driver application that instantiates each of these classes and prints the results.

Q6: Draw the UML diagram that relates these four classes

 

 

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Draw the uml diagram
Reference No:- TGS01934674

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)