c++11: use of using

1. When the subclass wants to use the non-virtual function of the parent class, you can use using, for example

class father
{
    void func();
}

class chilren public : father
{
    using father::func;
}

 

Guess you like

Origin blog.csdn.net/ynshi57/article/details/111325822