class SalesPerson : Employee
{
...
}
Here, SalesPerson has indeed overridden the virtual GiveBonus() method defined in the
method in the PTSalesPerson class:
C H A P T E R 6 ■
U N D E R S TA N D I N G I N H E R I TA N C E A N D P O LY M O R P H I S M
8849CH06.qxd 10/1/07 10:35 AM Page 202
public PTSalesPerson(string fullName, int age, int empID,
:base (fullName, age, empID, currPay, ssn, numbOfSales)