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
It shows how to create a class in C++. also, it creates the UML diagram for the corresponding code.