jeudi 2 avril 2020

Get the original class if casted to its implemented interface

Assume a class as follows

interface Dummy{
}

class Funny implements Dummy {
}

Now I want to find a way to retrieve Class of a Funny object even if it is cast to Dummy





Aucun commentaire:

Enregistrer un commentaire