Question: An Image Editor is a software, which can choose tools to edit images. When choosing tools to edit an image, it prints: Choosing Tool: T
| An Image Editor is a software, which can choose tools to edit images. When choosing tools to edit an image, it prints: "Choosing Tool: T to edit image: F ", where T is the tool type string (such as brightness, contrast etc) and F is the file name string.
A Video Editor is a software, which can open and crop videos. When opening a video, it prints a message: "Opening video: F, where F is the file name string. While cropping the video, it prints: "Cropping video from S to E seconds", where S is the starting time and E is the ending time in seconds.
|
| A SocialMediaApp can be used to add captions and post images/videos on the profile as well as also offers all the functionalities of an Image Editor and Video Editor. While adding a caption to a post, it prints a message: " Adding Caption: C to F , where F is the file name string and C is caption string. While posting an image/video, it prints a message: "Posting F, where F is the file name string.
|
| Snapseed is an editing software that has all the functionalities of an Image Editor.
Instagram is an App which has all the features of a SocialMediaApp. And also has an extra feature of recording videos in different ways like: boomerang, superzoom, rewind etc. While recording videos it prints "Recording a Z video", where Z the type of the video as mentioned previously.
|
| Your first job is to draw a relationship diagram in a page denoting which one is interface/class/ abstract class. It will help you to understand the relation between everything.
Implement the whole scenario using abstract class/interface. For the methods implementation, just use System.out.println. Remember to pass C, F, T, Z as String parameters and S, E as double in methods.
Show a demo in the main function by instantiating an object of Snapseed & Instagram individually and calling all their methods. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
