/* Multi-method example */
package mm;
public class c2 extends c1{
    public int m(String s){ return 2;}
    public static void main(String args[]){
	c1 o1 = new c1();
	c2 o2 = new c2();
	c1 o3 = new c2();
	String a1 = new String("Hi");
	Object a2 = new Object();
	Object a3 = new String("Hello");
	System.out.println(o1.m(a1));
	System.out.println(o1.m(a2));
 	System.out.println(o1.m(a3)); 
	System.out.println(o2.m(a1));
	System.out.println(o2.m(a2));
 	System.out.println(o2.m(a3));  //returns 1 since method resolution is done statically
	System.out.println(o3.m(a1));  //returns 1 since method resolution is done statically
	System.out.println(o3.m(a2));
 	System.out.println(o3.m(a3));  //returns 1 since method resolution is done statically
   }
}
