test7.7
来源:互联网 发布:nginx conf.d配置生效 编辑:程序博客网 时间:2024/06/13 13:40
class Fruit
{String shape;
Fruit(String s){shape=s;System.out.println(s);};}
class Food
{String taste;
Food(String t){taste=t;System.out.println(t);}}
public class Watermelon extends Fruit {
Watermelon(String s)
{super(s);Food f=new Food("Sweet");
System.out.println("Watermelon");}
public static void main(String[] args) {
Watermelon w=new Watermelon("Round");
}
}
{String shape;
Fruit(String s){shape=s;System.out.println(s);};}
class Food
{String taste;
Food(String t){taste=t;System.out.println(t);}}
public class Watermelon extends Fruit {
Watermelon(String s)
{super(s);Food f=new Food("Sweet");
System.out.println("Watermelon");}
public static void main(String[] args) {
Watermelon w=new Watermelon("Round");
}
}
0 0
- test7.7
- test7
- test7
- test7
- Test7.1
- test7.2
- Test7.5
- test7.6
- test7.8
- test7.9
- Test7.10
- test7.11
- test7.12
- test7.13
- test7.14
- test7.15
- test7.16
- test7.17
- 关于输出用%lf和%f的问题
- Android实战简易教程<四十七>(ListView多选-实现点餐系统)
- iOS 并发编程之 Operation Queues
- Linux目录树:根目录、典型目录等详细说明
- 关于ArrayList的5道面试题
- test7.7
- window7远程桌面部署服务器
- System.Web.Extensions, Version=1.0.61025.0, Culture=neutral
- svn提交规范
- 坑爹锦集之 maven-assembly 插件
- JS获取浏览器及屏幕高度和宽度等信息
- JavaScript高级程序设计之JavaScript 版本 第1.3讲笔记
- 新手必读!移动营销常用词
- [LeetCode 156] Binary Tree Upside Down