Question: Question 5 Why does the constructor not need a parameter for the variable? Because the programmer will not know which value to pass when the
Question
Why does the
constructor not need a parameter for the
variable?
Because the programmer will not know which value to pass when the constructor is called.
Because this variable is supplied in the base class constructor.
Because the SimpleGoal class does not contain that member variable.
Because the constructor can set it to a good default value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
