Are you sure? This line must print something:
System.out.println(math.toString());
In what method is setType("Math") called? Then where is that method called?
Type: Posts; User: Norm
Are you sure? This line must print something:
System.out.println(math.toString());
In what method is setType("Math") called? Then where is that method called?
What prints out when the code is executed? Why do you expect anything different to be printed?
Where is the main class, what is the name of the main class and where are the methods that are supposed to cause "Math" to be printed.
There is no main() method in the posted code. A main()...