An object-oriented design for cd and dvd collection


Question:

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.

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

2. Generate the pseudocode for each of the classes.

3. 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 Preview :

Prepared by a verified Expert
Other Subject: An object-oriented design for cd and dvd collection
Reference No:- TGS01936395

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)