Call parent class's method in child class

One thing for sure is that in child class, only parent class's public and protected methods can be accessed.

1. When to call CBase::func() ? In case you want to call a virtual function that is overridden in child class but you want the base class's implemetation.

2. Directly call func().

 

posted @ 2009-05-29 17:14  能巴  阅读(229)  评论(0编辑  收藏  举报