Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java 1) Implement User class, Photo class, Video class and Album class based on the following UML diagram Implement no-argument constructor for all the

In java

image text in transcribed

1) Implement User class, Photo class, Video class and Album class based on the following UML diagram Implement no-argument constructor for all the classes. Implement a constructor that creates a User with the specified id Implement a constructor that creates a Photo with the specified id Implement a constructor that create a Video with the specified id. Implement a constructor that create a Album with specified id Implement the accessor and mutator methods for all the private data field 2) Create a Demo Class with main method to test the User, Photo, Video and Album classes In the main method, create a user with userlD: A00001, password: mypassword. Create an album for this user with albumID: 7065. Add following photos and videos into the album PhotolD P0001 P0002 P0003 P0004 Height 560 450 690 430 Width PhotoLocation C:/Users/myphoto/p0001.jpg 870 C/Users/myphoto/p ??2.jpg | 890 C:/Users/myphoto/ C:/Users/myphoto/ 780 670 VideolD V0001 V0002 Duration 2:30 3:40 VideoFormat AVI Print the album photo and video information similar as following: UserlD: XXXXX AlbumID: Xxxxxx .___..Photos PhotolD PhotoLcation Width Height Photos End Videos VideolD VideoFormat Duration

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago