Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java 1) Create an arraylist and add 10 mobilephone objects with different properties. For Example different os, different brand etc. 2) From 3 to

in java image text in transcribed
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 playVideo method. 9) Call all mobilephone object's pauseVideo method. Extra Question: Create the classes according to the following UML diagram: - Create a bus object and create 40 different seat objects for the bus. Assign id numbers from 1 to 40 to in sequential order. - Require user to reserve seat with id number. If id number is available then require name of the owner of the seat and reserve it. Otherwise print an error message. To reserve the seat call makeReservation method, to delete the reservation call deleteReservation method

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago