User talk:Aneev12

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package krishna;

/** * * @author Aneev */ public class hare { double length; double breadth; double area(double l,double b)   { length=l; breadth=b; return(length*breadth); }   double area(double a)    { length= a;   breadth= a;    return(length*breadth); } } class overload {   public static void main(String args[]){ System.out.println("HARE"+"Krishna"); double area; hare h = new hare; area = h.area(2.5,5.0); System.out.println("Area of Rectangle = "+area); area = h.area(3.5,3.5); System.out.print("Area of Square = "+area); } }