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;
}
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;
}