?? sandwich.java
字號:
//:c07 :Sandwich.java
class Meal
{
Meal()
{
System.out.println("Meal()");
}
}
class Bread
{
Bread()
{
System.out.println("Bread()");
}
}
class Cheese
{
Cheese()
{
System.out.println("Cheese()");
}
}
class Lettuce
{
Lettuce()
{
System.out.println("Lettuce");
}
}
class Lunch extends Meal
{
Lunch()
{
System.out.println("Lunch()");
}
}
class PortableLunch extends Lunch
{
PortableLunch()
{
System.out.println("PortableLuch()");
}
}
class Sandwich extends PortableLunch
{
Bread b=new Bread();
Cheese c=new Cheese();
Lettuce l=new Lettuce();
Sandwich()
{
System.out.println("Sandwich()");
}
public static void main(String [] args)
{
new Sandwich();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -