lundi 23 janvier 2017

Interfaces and public methods

I have a struct that I use a pure abstract interface (only public methods and they're all =0) for two specialisations that inherit from it.

I'd like to expose some public methods in those specialisations as they only make sense in that context but marking them as public doesn't work as the compiler only seems to be able to see public methods in the interface. How can I make public methods in the specialisations accessible?

Aucun commentaire:

Enregistrer un commentaire