jeudi 9 mai 2019

How to use Class.getMethod as a getter?

I'm trying to use Class.getMethod as a getter.

I tried:

//This works fine
Class<?> c = Class.forName("Cat");
//This is not working 
Cat cat = c.getMethod("getCat");





Aucun commentaire:

Enregistrer un commentaire