Say I have like 50 different classes extending 1 base-class, they all have some abstract variables. How would I create 1 method where I can specify a class I want a variable from, and get that variable. For example if I had 3 classes extending Person, and they had abstract name variables with the names "John, Josh and Jennica" How would I have 1 method that would let me specify a class to get a variable from? So like getName(John) would give me the name of John, getName(Jennica) the name of jennica etc...? I would like this possible without having instances of every single class I need to use getters for?