Question: 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

 In java 1) Implement User class, Photo class, Video class and

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

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!