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