// Arup Guha
// 2/7/06
// A short example to illustrate method overloading.

public class overload {

  // One definition of add that takes in two ints.
  public static int add(int a, int b) {
    return a+b;
  }

  // Another (warped) definition of add that takes in two doubles.
  public static double add(double a, double b) {
    return a*b;
  }

  public static void main(String[] args) {

    // Try out three separate calls.
    System.out.println("Add is "+add(5,7));
    System.out.println("Mult is "+add(5.0,7));
    System.out.println("Mult is "+add(5.0,7.0));

  }





}
