Question: Please add as many comments as possible. Task 2: 5+10 + 10 = 25 Points Implement the following classes, each on a separate file: MyDevice

Please add as many comments as possible.

Please add as many comments as possible. Task 2: 5+10 + 10

Task 2: 5+10 + 10 = 25 Points Implement the following classes, each on a separate file: MyDevice > > -networks: String() Camera -price: Double +takePicture(): void *Constructor, getter-setter*/ +takeVideo(): void + portable (): void SmartPhone -phone Number: int /* Constructor, getter-setter*/ +toString(): String Laptop -eMail: String /*Constructor, getter-setter*/ +toString(): String Now write a test program and create two SmartPhone and Laptop objects using user input. Throw an exception that you define if the price input is negative. For SmartPhone class, the portable() method should display On hand. For Laptop class the portable() method should display "On lap. Then invoke their toString(), takePicure() and take Video() methods. For SmartPhone the takePicure() method should display Picture snap. For Laptop the takePicure() method should display Picture is taken. For SmartPhone the take Video() method should display Video good. For Laptop the take Video() method should display Video is best. The toStringo method should display the values for all the data fields. Write the objects to a file and read from the file again to display the toString() for the device with the highest price

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!