Explore BrainMass
Share

Explore BrainMass

    Create a class MusicalComposition and its UML diagram

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create a class named MusicalComposition that contains fields for title, composer, and year written. Include a constructor that requires all three values and a appropriate display function. The child class NationalAnthem contains an additional field that holds the name of the anthem's nation. The child class constructor requires a value for this additional field. The child class also contains a display function. Write a main() function that instantiates objects of each class and demonstrates that the functions work correctly.

    You will include 3 access specifiers (public, private, protected)

    Create a UML diagram for the corresponding code

    © BrainMass Inc. brainmass.com October 9, 2019, 7:05 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/create-class-musicalcomposition-uml-diagram-107848

    Solution Summary

    It shows how to create a class in C++. also, it creates the UML diagram for the corresponding code.

    $2.19