I have an entire program wrote, but I'm having problems with the getMethod. I need a get method which will receive the position of the variable (1,2, or 3) and will then return the variable at that position. Here's an example of the call to the method: System.out.println(dog.getFido(2));
I've tried multiple variations, but none of the codes have worked. Can someone point me in the right direction. I've looked for tutorials and examples of this online, but I not even sure I'm using the right keywords for the search.
I appreciate any help you can give me.