## 21.2 Polymorphic Variables - example

>     class Employee
>     {
>     public:
>        Employee(string n, double s);
>        string get_name() const;
>        double get_salary() const;
>        void set_salary(double s);
>        virtual double annual_income() const;
>        void print(ostream& out) const;
>     private:
>        string name;
>        double salary;
>     };

prev |top |next