Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 theStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started