Lab #6 (Exercise 7-2)
Create a Product application that uses inheritance
Due Date: Thursday of Week 2
10 points
In this lab, you'll create a Product application like the one presented in this chapter that uses inheritance. However, you will add an additional kind of product: compact discs. To make this application easier to develop, we'll give you most of the starting classes.
- Copy and paste the codes below:
Create a new subclass named CompactDisc
Modify the ProductDB class so it returns a CompactDisc object
Cose: sgtp Description: Sgt. Pepper's Lonely Hearts Club Band Price: $15.00 Artist: The Beatles
Add a protected variable
- Name of program
- Team's name with all the names of the members (e.g. Team A: John Doe, Jane Smith, etc.)
- Current Date
- Computer system and compiler you are using
- Brief description of the program
Compile and run the Java program.
Take a screen capture by hitting simultaneously the keys Alt and Print Screen (Prt Sc) of the output results (console) and paste it in MS Paint. Save it as a gif file.
When you are ready, upload the java programs by clicking the link below:I cannot grade if I don't get the files and receive your email.