Actually I suggested the usage of function func with class C: public A, public B
func
class C: public A, public B