I'm writing a Java program for school (so: strict rules to it...) to graphically visualize mathematical function (like Sin, Cosine and Tangent, to make an example).
I have two interfaces: Function
and DifferentiableFunction
, and every mathematical function is stored in a class that extends Function
or DifferentiableFunction
.
When I launch the program, I have a textfield in which I need to write the name of the mathematical function (they will be added by the professor as a test) and my idea is to be able to reference the class name by the Text Field input.
The problem is: after days of searching, I really don't know how to do this thing, or even if it is possible.
Please help me, I'm stuck and the deadline is near!