Initialize abstract class reference from class construction in one line

后端 未结 0 355
盖世英雄少女心
盖世英雄少女心 2021-01-07 19:39

I am wondering how we would asign a class reference of a child class to an abstract class reference in one line.

I know this works:

MyClass c;
MyAbstra         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题