Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC435 Object Oriented Programming 3. Given a program segment for Video Tape class in video rental application. class VideoTape private String title; private int length;
CSC435 Object Oriented Programming 3. Given a program segment for Video Tape class in video rental application. class VideoTape private String title; private int length; private boolean avail; // name of the item // number of minutes // is the tape in the store? // constructor public VideoTape ( String ttl ) { title = ttl; length = 90; avail = true; } // constructor public VideoTape ( String tti, int Ingth) { title - ttl; length - Ingth; avail - true; 1 public void show () { System.out.println( title + ", " + length + " min. available:" + avail); 1 ! ) class Tape Store { public static void main(String args[]) { VideoTape iteml = new VideoTape ("Jaws", 120 ); VideoTape item2 new VideoTape ("Star Wars" ); = iteml.show(); item2.show(); } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started