You aren’t actually printing the result; you’re just calling the add()
method.
Try:
System.out.println(m.add());
0
solved Java multiple class addition
You aren’t actually printing the result; you’re just calling the add()
method.
Try:
System.out.println(m.add());
0
solved Java multiple class addition