Can't downcast because class is not polymorphic?

后端 未结 5 1819
时光取名叫无心
时光取名叫无心 2020-12-04 23:32

Is it possible to have inheritance with no virtual methods? The compiler is saying that the following code is not polymorphic.

Example:

Class A(){
           


        
5条回答
提交回复
热议问题