dimanche 11 juillet 2021

How can I serialize an derived type pointer to interface type object in c++?

Interface * base_ptr1 = new Derived1();

Interface * base_ptr2 = new Derived2();

In theory I should have serialize() method in all classes but my interface type class does not have data members, only abstract virtual methods.

Aucun commentaire:

Enregistrer un commentaire