Page 1 of 1

Serializing Abstract Classes

Posted: Mon Aug 12, 2019 3:21 am
by Exonto
Hello,

I am a little confused about the "Non-abstract classes with a parameterless constructor" requirement, specifically the non-abstract portion.

I have successfully been able to serialize an object which has an abstract base class so I'm not sure if I'm missing something?

Re: Serializing Abstract Classes

Posted: Mon Aug 12, 2019 5:43 pm
by Joel
Hi there,

In your case the class you are saving is a concrete class. The class it inherits from is the abstract class. This is why you are able to save your data :)

All the best,
Joel

Re: Serializing Abstract Classes

Posted: Mon Aug 12, 2019 7:47 pm
by Exonto
Thanks! Just wanted to make sure.