Java: Method returns Class (where ). Returning subclass class causes type mismatch error

前端 未结 0 955
不思量自难忘°
不思量自难忘° 2021-01-16 01:51

Long time reader, first time caller (on this board anyway).

Envision the following:

 public class BaseClass{ }

 public class C1 extends BaseClass { }
         


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