I can't seem to find an answer to this question anywhere. It is probably because it is impossible but it is worth asking.
In my class, I have functions for discovering, loading and saving settings. These settings are declared using annotations. This class will be extended and the settings will be located in the child class. Is there a way to discover fields using reflection from the superclass without needing an abstract function in every implementation returning itself?
Aucun commentaire:
Enregistrer un commentaire