That is clearly not true, and the Java solution works quite happily in C++. Namely, use inheritance. You have a pure base class with nothing but virtual method ...
確定! 回上一頁