Solved

Assuming the Following Is the Beginning of the Constructor Definition

Question 17

Multiple Choice

Assuming the following is the beginning of the constructor definition for class BasePlus-CommissionEmployee which inherits from class Point: BasePlusCommissionEmployee::BasePlusCommissionEmployee(string first,
String last, string ssn, double sales, double rate, double salary)
: CommissionEmployee(first, last, ssn, sales, rate)
The line beginning with a colon(:)


A) Invokes the CommissionEmployee constructor with arguments.
B) Causes a compiler error.
C) Is unnecessary because the CommissionEmployee constructor is called automatically.
D) Indicates inheritance.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions