⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kids6.java

📁 这是一些java小程序的源码
💻 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 + -