From: Mike J. <ask...@gm...> - 2012-07-10 15:03:20
|
class Calendar { protected: //! abstract base class for calendar implementations class Impl { public: virtual bool isWeekend(Weekday) const = 0; ... }; class WesternImpl : public Impl { protected: bool isWeekend(Weekday) const; ... }; If I were right, changing the virtual function scope is NOT a good practice in c++. So why we decide to do so here? Thank you |