test7.16
来源:互联网 发布:四大网络交流平台 编辑:程序博客网 时间:2024/05/18 16:17
class Amphibian
{private int num;
private String shape;
Amphibian(int n,String s){num=n;shape=s;}
static void display(Amphibian am){System.out.println(am.num+" "+am.shape);}}
public class Frog extends Amphibian{
Frog(int i,String s){super(i,s);}
public static void main(String[] args) {
Frog fg=new Frog(12,"Orange");
Amphibian.display(fg);
}
}
{private int num;
private String shape;
Amphibian(int n,String s){num=n;shape=s;}
static void display(Amphibian am){System.out.println(am.num+" "+am.shape);}}
public class Frog extends Amphibian{
Frog(int i,String s){super(i,s);}
public static void main(String[] args) {
Frog fg=new Frog(12,"Orange");
Amphibian.display(fg);
}
}
0 0
- test7.16
- test7
- test7
- test7
- Test7.1
- test7.2
- Test7.5
- test7.6
- test7.7
- test7.8
- test7.9
- Test7.10
- test7.11
- test7.12
- test7.13
- test7.14
- test7.15
- test7.17
- 【Xcode7 使用NSURLSession发送HTTP请求出错 】
- Java 反射机制
- android 图片的加载保存 与 二级缓存
- Postgres SQL 试用第一章 安装琐事
- Python实现读写文件
- test7.16
- 字符串反转
- uva 1001 dijkstra
- noip2010 数字统计 (统计某一数字区间中,2出现的次数)
- smali代码初识
- hdu3635
- mobile angualar ui的简单使用
- linux下的各种函数库略读(POSIX C和ANSI C、GNU C以及ISO C、glib、libc、glibc)
- 数据库JDBC的连接