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

📄 instanceofabstract.java

📁 Java讲义与实例
💻 JAVA
字号:
abstract class Abstractsuper{
   
	public void a(){
		System.out.println("Mathod a() of super");
		}
	public abstract void b();
	}
class Abstractsub extends Abstractsuper{
	
	public void  b(){
		System.out.println("Mathod b() of super");
		}
	public void c(){
		System.out.println("Mathod c() of subbie ");
		}

	}
public class Instanceofabstract{
	public static void main(String[] args){
		Abstractsuper aninstance =new Abstractsub();
		Abstractsub another=new Abstractsub();
		aninstance.a();
		aninstance.b();
		another.c();
	   }
	}

⌨️ 快捷键说明

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