The problem with ur code is, u need to declare
variables num1, num2 before the constructor in class
jmav.java. Also, I dont see any overloading done here.
If u want try overloading, u can define one more
constructor with 1 parameter or 3 parameter or in 2
parameter constuctor itsef with another type of value
instead of integer ..