Share
Explore BrainMass

An object-oriented design for 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

Solution Summary

An object-oriented design for a system that keeps tracks of your CD and DVD
collection is generated.

$2.19