Home > Software engineering >  The abstract class subclass how to invoke methods of an abstract class?
The abstract class subclass how to invoke methods of an abstract class?

Time:09-27

There is a problem has been stuck for a long time, wish you a great god help, there are several window inherited from an abstract class, now I create a new class, but it is not an abstract class subclasses, need to use some common methods of an abstract class, how to call? I tried to use a pointer, use the subclass to new also not line, can best for example, be obliged!!

CodePudding user response:

General CXXXbaseClass: fun ()
High version VS __super: : fun ()

CodePudding user response:

reference 1st floor zgl7903 response:
general CXXXbaseClass: fun ()
High version VS __super: : fun ()
truth, it is good to call directly

CodePudding user response:

BaseClass: : aFun (... );//use the name of the class is limited

CodePudding user response:

By the name of the class to call a method
  • Related