Explore BrainMass
Share

Explore BrainMass

    An object-oriented design for CD and DVD collection

    This content was COPIED 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 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

    © BrainMass Inc. brainmass.com October 9, 2019, 9:38 pm ad1c9bdddf
    https://brainmass.com/computer-science/pseudocode/an-object-oriented-design-for-cd-and-dvd-collection-192347

    Solution Summary

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

    $2.19