Create a class named tape that includes fields for length


Problem

Complete the following tasks:

a. Create a class named Tape that includes fields for length and width in inches, and create get and set methods for each field.

b. Derive two subclasses- videoCassetteTape and Adhesive Tape. The videoCassetteTape class includes a numeric field to hold playing time in minutes and get and set methods for the field. The AdhesiveTape class includes a numeric field that holds a stickiness factor-a value from 1 to 10-and get and set methods for the field.

c. Design a program that instantiates one object of each of the three classes, and demonstrate using all the methods defined for each class.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a class named tape that includes fields for length
Reference No:- TGS02648765

Expected delivery within 24 Hours