Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that you have to copy, convert, and send the converted video to storage (i.e disks) from three different media : Video CD, Video DVD,

Assume that you have to copy, convert, and send the converted video to storage (i.e disks) from three different media : Video CD, Video DVD, and BluRay. Complete the code given below to do the job. You cannot erase anything. You will just add missing parts! DO NOT FORGET that your design will be part of the evaluation.

public abstract class Media {

public void doJob() {

copy();

convert();

sendToStorage();

}

}

public class Final_exam {

public static void main(String[] args) {

VideoCd videoCd = new VideoCd();

VideoDvd videoDvd = new VideoDvd();

BluRay bluRay = new BluRay();

Media[] allMedia = new Media[3];

allMedia[0] = videoCd;

allMedia[1] = videoDvd;

allMedia[2] = bluRay;

for (int i = 0; i < allMedia.length; ++i)

allMedia[i].doJob();

}

}

*************in java language

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions