⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v.java.bak

📁 java课件及例程有一些PPT及一些例程
💻 BAK
字号:
class A
{
    int x=3;
    public void m()
    {
        System.out.println("the x of A is "+x);
    }
}
class V extends A
{
    double x=20.67;  //也可定义为其它类型,如double x;
    public void m()
    {
        System.out.println("the x of V is "+x);
        System.out.println("the x of superclass is "+super.x);
        super.m();
    }

    public static void main(String[] args)
    {
        V b = new V();
        b.m();    	
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -