test9.19
来源:互联网 发布:淘宝优惠券转换手机端 编辑:程序博客网 时间:2024/05/16 08:58
interface Gamemode {void name();void mode();}
class Seive implements Gamemode{
public void name(){System.out.println("Seive");}
public void mode(){System.out.println("read six plane");}
}
class Coin implements Gamemode{
public void name(){System.out.println("Coin");}
public void mode(){System.out.println("read two plane");}
}
public class Test19 {
public static void f(Gamemode am)
{am.name();am.mode();}
public static void main(String[] args) {
f(new Coin());
f(new Seive());
}
}
class Seive implements Gamemode{
public void name(){System.out.println("Seive");}
public void mode(){System.out.println("read six plane");}
}
class Coin implements Gamemode{
public void name(){System.out.println("Coin");}
public void mode(){System.out.println("read two plane");}
}
public class Test19 {
public static void f(Gamemode am)
{am.name();am.mode();}
public static void main(String[] args) {
f(new Coin());
f(new Seive());
}
}
0 0
- test9.19
- test9
- test9
- test9.1
- test9.3
- test9.4
- test9.5
- test9.7
- test9.8
- test9.9
- test9.10
- test9.12
- test9.13
- test9.14
- test9.15
- test9.16
- test9.17
- test9.18
- 弱校联盟 2015-10-1 E
- Robotium 介绍
- zeromq源码分析–TCP连接处理流程
- java获取当前的系统
- 国外安卓开源ui集合
- test9.19
- Reverse Nodes in k-Group
- typename的用法
- 局域网主机间发包细节
- 类的继承
- Java中序列化的serialVersionUID作用
- 笔试
- nginx的多站设置
- Insertion Sort List