![]() ![]() But since I don't have the money to buy odin Inspector nor ANY idea on how to implmement custom serialization that seems to be a dead end, too. I'm also wondering whether there is a way to get to a solution if I was able to serialize interfaces as all the c$$anonymous$$ld classes could inherit from that interface and the problem would be solved. But they often have the problem statement. 2 Null Check 2 2 Class, Inheritance, Interface 3. Interfaces dont have implementation, so if you want to reuse code you either have to use class inheritance or you must use composition. Delphi Cookbook, Third Edition, published by Packt - GitHub. The common mistake to make when using implementation inheritance is creating God Object. If t$$anonymous$$s should be right, how can I solve t$$anonymous$$s problem ? I believe you are talking about implementation inheritance but not interface inheritance. ![]() I believe t$$anonymous$$s is due to the fact that when serialized all the c$$anonymous$$ld classes get turned into the base class. However, I can only see the variables from the base class but not the ones from the inherited ones. T$$anonymous$$s list should allow me both to see all the objects and their serialized variables. If you design a class that is entirely abstract, then that class is what Java refers to as an interface. I'm trying to Serialize a List with objects from different kind of classes that inherit from one base class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |