An object-oriented design for CD and DVD collection
Not what you're looking for?
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
Purchase this Solution
Solution Summary
An object-oriented design for a system that keeps tracks of your CD and DVD
collection is generated.
Purchase this Solution
Free BrainMass Quizzes
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.