Complete the following class by writing the required methods…
Complete the following class by writing the required methods as indicated by each comments. public class Video{ private String name; // the title of the vidoe private String type; // classification of the video (comedy, drama, action, or romance) private int duration; // the running time of the video in minutes // method1 – Returns the name of this video . …………. // method2 – Returns the type of this video . …………. // method3 – Return the duration of this video …………. // method4 – Set a type for this video tape. …………. /* method5 – reimplement the toString () to return a string as per the following format:* Impossible Mission (Action) 120 minutes */ // 6. constructor with 3 parameters
Read Details