Share
Explore BrainMass

Object Oriented Design of a CD/DVD system

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection.

? Identify each of the classes, associated data, and operations for the classes.

? Generate the pseudo code for each of the classes of objects

Attachments

Solution Preview

First, I have thought of a Media class as an ancestor class for CD and DVD classes. Since, both of them share some data and functions as follows:
1. Media
Data
? totalItems
? Name
? Serial
Operations
? AddItem
? getName
? getSerial
? getTotalItems
? setName
? setSerial
? setTotalItems

CD has additional features and slightly different is DVD
2. CD is a Media
Data
? Album
? Artist
? Volume
Operations
? getAlbum
? getArtist
? getVolume
? setAlbum
? setArtist
? setVolume

3. DVD is a Media
Data
? Movie
? Artist
? Volume
Operations
? getMovie
? getArtist
? getVolume
? setMovie
? setArtist
? setVolume

Notice the differences in Album and Movie. You will ...

Solution Summary

Generates an object-oriented design for a system that keeps tracks of your CD and DVD collection.

? Identifies each of the classes, associated data, and operations for the classes.

? Generates the pseudo code for each of the classes of objects

$2.19