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

📄 mankind1.java

📁 java 教程源码
💻 JAVA
字号:
//c4:Mankind1.java
//author:ZhangHongbin 
//This program is protected by copyright laws.
//Demo constructor.  
public class Mankind1
{
	int sex;
	int salary;
	public Mankind1()
	{
		System.out.println("output of constructor");
	}
	void employed (int salaryValue)
	{
		if (salaryValue==0)
			System.out.println("no job ");
		else
 			System.out.println("job");
	}
	public static void main(String[] args) 
	{
		Mankind1 somePerson=new Mankind1();
		System.out.println("after create object");
		somePerson.sex=1;
		somePerson.salary=5;
		somePerson.employed(somePerson.salary);

	} 
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -