User Profile
Collapse
-
jon williams started a topic how to implement Java equivalent of Function Pointers via abstract classesin Javahow to implement Java equivalent of Function Pointers via abstract classes
Im trying to to create a simple 4 function calculator using a jump table without switch case or if/else statements. I understand I can create the jump table via function pointers but I am kindda blanking out. I've started with the addition and subtraction part of the program but am trying to grasp the design/strategy to use. I am also getting an error when putting the method in the array, so far this is what i have:....I'm also trying to figure out...
No activity results to display
Show More