Question: Please help out with this practice question, thank you! You are required to write a C++ program that creates a class with the following details:
Please help out with this practice question, thank you!


You are required to write a C++ program that creates a class with the following details: 0 A Cd class (Parent class): 0 private: l const char * performers; l const char * label; I int selections; I double playtime; l private Data Members 0 A default Constructor that makes performers and label to point to a heap memory location of 8 char and assign them both the initial value of "Unknown". The default constructor also assigns the initial value of O and 0.0 to selections and playtime respectively. 0 A parameterized constructor that has the signature CdCconst char * performers, const char * label, int selections, double playtime) and makes performers point to a heap memory location with a (size + 1) of performers variable from the parameter. You can get the size of the char array using strlen available in the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
