?? kids6.java
字號:
//c3:Kids6.java
//author:ZhangHongbin
//This program is protected by copyright laws.
//composition of class.
class Mankind
{
void employed (int salaryValue)
{
if (salaryValue==0)
System.out.println("no job ");
else
System.out.println("job");
}
}
public class Kids6
{
Mankind manWoman;
Kids6()
{
manWoman=new Mankind();
}
void employed(int salaryValue)
{
System.out.println("kids should study and no work ");
}
public static void main(String[] args)
{
Kids6 someKid=new Kids6();
someKid.employed(100);
someKid.manWoman.employed(100);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -