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().

 

你可能感兴趣的:(method)