previous | start | next

1.2.1b So what does this mean?

Here are the two implementations of getBonus functions:



  virtual double getBonus() const
    {
      return 0.01 * salary;
    }



  virtual double getBonus() const
    {
      return 2 * getSalary();
    }



previous | start | next