Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ketan Dave   on May 12 In Java Category.

  
Question Answered By: Calvin Banks   on May 12

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 ..

Share: