_SYSC_2004_Lab_9

_SYSC_2004_Lab_9 - Carleton University Department of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Carleton University Department of Systems and Computer Engineering SYSC 2004 Fall 2009 Lab 9 - Inheritance and Polymorphism Objective The objective of this lab is to gain more experience with inheritance, abstract classes, and polymorphism. Getting Started 1. Download file dome.zip from the course Web site. 2. Right-click on the dome.zip folder and select Extract All. .. to extract all the files into a folder called chess . Background The classes in Database.java , CD.java and DVD.java implement a simple database that stores information about CDs and DVDs. Each instance of class CD stores the following information about a CD: the title of the album; the artist (the name of the band or singer); the number of tracks on the CD; the total playing time; a "got it" flag that indicates whether you own a copy of this CD; a comment (some arbitrary text). Each instance of class DVD stores the following information about a DVD: the title of the DVD; the name of the director;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

_SYSC_2004_Lab_9 - Carleton University Department of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online