class Base 
{
	void fun(int num)
	{
		System.out.println("fun(int num)"+num);
	}
}

public class Derived extends Base
{
	void fun(double num)
	{
		System.out.println("fun(double num)"+num);
	}

	
	public static void main(String[] args) 
	{
		Base a=new Derived();
		int num=1;
		double dnum=1.5;
		a.fun( num);
		//a.fun( dnum);//无法将 Base 中的 fun(int) 应用于 (double)

		Derived D=new Derived();
		D.fun( num);
		D.fun( dnum);
	}
}

/*
fun(int num)1
fun(int num)1
fun(double num)1.5
请按任意键继续. . .
*/