我有大约 300 个函数,不想为每个函数制作一个包装器。
class B
{
func(vartype somevar, int otherparam)
{
//code
}
}
然后我想这样做
class A:B(vartype somevar)
{
Asfunc2()
{
this->func(1); //basically somevar would already be filled in when called and it'd just need the 1 param.
}
}