1) Create an arraylist and add 10 mobilephone objects with different properties. For Example different os, different brand etc. 2) From 3 to all other sections create different for loops to print and place --- mark to seperate the results of the operations. 3) Call all mobilephone object's toString method. (In this case toString method of Computer is inherited) 4) Call all mobilephone object's camera object's toString method. 5) Call all mobilephone object's camera object's brand property. 6) Call all mobilephone object's os property. 7) Call all mobilephone object's makeCall method. 8) Call all mobilephone object's play Video method. 9) Call all mobilephone object's pause Video method.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

can you write  the solution in java 

Problem: Create the classes and interfaces on the UML class diagram.
<<<Interface>>>>
VideoPlayer
+ play Video (uri: String): void
pauseVideo(url String): void
App1
+ main(args:String[]):void
-mobilephones: ArrayList<MobilePhone --Use> -camera: Camera
Extends
Mobile Phone
+ bus: Bus
App2
-os: String
+ toString():void
1) Create an arraylist and add 10 mobilephone objects with different properties. For
Example different os, different brand etc.
+ main(args String[]):void
Computer
+ make Call(phonenumber:String): void
2) From 3 to all other sections create different for loops to print and place --- mark to
seperate the results of the operations.
3) Call all mobilephone object's toString method. (In this case toString method of
Computer is inherited)
4) Call all mobilephone object's camera object's toString method.
5) Call all mobilephone object's camera object's brand property.
6) Call all mobilephone object's os property.
7) Call all mobilephone object's makeCall method.
8) Call all mobilephone object's play Video method.
9) Call all mobilephone object's pause Video method.
Extra Question:
Create the classes according to the following UML diagram:
Bus
Use-seats: ArrayList<Seat>
+toString():void
Camera
-brand: String
toString():void
-id: int
-owner: String
Seat
+toString():void
+makeReservation(id int, owner String) void
+ deleteReservation(id:int):void
Transcribed Image Text:Problem: Create the classes and interfaces on the UML class diagram. <<<Interface>>>> VideoPlayer + play Video (uri: String): void pauseVideo(url String): void App1 + main(args:String[]):void -mobilephones: ArrayList<MobilePhone --Use> -camera: Camera Extends Mobile Phone + bus: Bus App2 -os: String + toString():void 1) Create an arraylist and add 10 mobilephone objects with different properties. For Example different os, different brand etc. + main(args String[]):void Computer + make Call(phonenumber:String): void 2) From 3 to all other sections create different for loops to print and place --- mark to seperate the results of the operations. 3) Call all mobilephone object's toString method. (In this case toString method of Computer is inherited) 4) Call all mobilephone object's camera object's toString method. 5) Call all mobilephone object's camera object's brand property. 6) Call all mobilephone object's os property. 7) Call all mobilephone object's makeCall method. 8) Call all mobilephone object's play Video method. 9) Call all mobilephone object's pause Video method. Extra Question: Create the classes according to the following UML diagram: Bus Use-seats: ArrayList<Seat> +toString():void Camera -brand: String toString():void -id: int -owner: String Seat +toString():void +makeReservation(id int, owner String) void + deleteReservation(id:int):void
Expert Solution
steps

Step by step

Solved in 10 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education