/*
	·½·¨ÖØÐ´£º×ÓÀàÖÐ³öÏÖÁËºÍ¸¸ÀàÖÐÒ»Ä£Ò»ÑùµÄ·½·¨ÉùÃ÷£¬Ò²±»³ÆÎª·½·¨¸²¸Ç£¬·½·¨¸´Ð´
*/
//ÊÖ»ú
/*
class Phone {
	public void call(String name) {
		System.out.println("¸ø"+name+"´òµç»°");
	}
}

//ÐÂ¿îÊÖ»ú
class NewPhone {
	public void call(String name) {
		System.out.println("Ìý²ÊÁå");
		System.out.println("¸ø"+name+"´òµç»°");
	}
}

class PhoneDemo {
	public static void main(String[] args) {
		//ÊÖ»ú
		Phone p = new Phone();
		p.call("ÁÖÇàÏ¼");
		System.out.println("-----------");
	
		//ÐÂÊÖ»ú
		NewPhone np = new NewPhone();
		np.call("ÁÖÇàÏ¼");
	}
}
*/

class Phone {
	public void call(String name) {
		System.out.println("¸ø"+name+"´òµç»°");
	}
}

class NewPhone extends Phone {
	public void call(String name) {
		System.out.println("Ìý²ÊÁå");
		//System.out.println("¸ø"+name+"´òµç»°");
		super.call(name);
	}
}

class PhoneDemo {
	public static void main(String[] args) {
		//ÊÖ»ú
		Phone p = new Phone();
		p.call("ÁÖÇàÏ¼");
		System.out.println("-----------");
	
		//ÐÂÊÖ»ú
		NewPhone np = new NewPhone();
		np.call("ÁÖÇàÏ¼");
	}
}