Consider the scnerio of a shop that sells CDs in cash. The CDs are of three types: Movie CDs, Software CDs and Music CDs. For each of the following CD types, the required attributes are:Movie CD: Movie Title, Year of Release, Lead Actor Name, CD price and CD quantitySoftware CD: Software Name, Edition, Year of Release, CD price and CD quantityMusic CD: Album Title, Year of Release, Number of Songs, Format, CD price and CD quantity. Questions are given below: 1.Consider the CD Shop scenario draw the UML Class Diagram showing attributes, accesslevel and constructor on the paper considering all object-oriented notions intact.
Consider the scnerio of a shop that sells CDs in cash. The CDs are of three types: Movie CDs, Software CDs and Music CDs. For each of the following CD types, the required attributes are:Movie CD: Movie Title, Year of Release, Lead Actor Name, CD price and CD quantitySoftware CD: Software Name, Edition, Year of Release, CD price and CD quantityMusic CD: Album Title, Year of Release, Number of Songs, Format, CD price and CD quantity.
Questions are given below:
1.Consider the CD Shop scenario draw the UML Class Diagram showing attributes, accesslevel and constructor on the paper considering all object-oriented notions intact.
2. The variable of CDType can hold a fixed set of values that are Movie, Software andMusic, what data type you recommend is suitable to store this information to ensure typesafety firmly. Declare and initialize the CDType variable.
Step by step
Solved in 2 steps with 1 images