Is there a method to cast an instance of a subclass by string?

前端 未结 0 456
情话喂你
情话喂你 2020-12-04 02:42

For example, say you have

class Item { }
class Book: Item { }

and you have an object declaration such as

Item myBook = new Boo         


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