Explore BrainMass
Share

Object Oriented Design of a CD/DVD system

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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

© BrainMass Inc. brainmass.com October 24, 2018, 8:32 pm ad1c9bdddf
https://brainmass.com/computer-science/pseudocode/object-oriented-design-of-a-cd-dvd-system-99889

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
See Also This Related BrainMass Solution

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

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 pseudocode for each of the classes.
? Draw a GUI that will create the objects and provide access to each object's processing
methods.
Here is the example
Class Cube
Side As Real
Volume As Real
Subprogram SetSide(NewSide)
Set Side = NewSide
End Subprogram
Subprogram ComputeVolume()
Set Volume = Side ^ 3
End Subprogram
Function GetVolume() As Real
Set GetVolume = Volume
End Function
Function GetSide() As Real
Set GetSide = Side
End Function
End Class
Class SquareBox As Cube
Height As Real
Subprogram SetHeight(NewHeight)
Set Height = NewHeight
End Subprogram
Function GetHeight() As Real
Set GetHeight = Height
End Function
Subprogram ComputeVolume()
Set Volume = Side ^ 2 * Height
End Subprogram
End Class

View Full Posting Details