函数例题2

package com;

public class Demo03 {
	public static void main(String[] args) {
		Manager m = new Manager();
		
		m.name = "tom";
		m.id = 9527;
		m.salary = 12000;
		m.bonus = 3000;
		
		System.out.println(m.name + "..." + m.id + "..." + m.salary + "..." + m.bonus); 
		m.work();
	}
}

class Manager {
	String name;
	int id;
	double salary;
	double bonus;
	
	public void work() {
		System.out.println("好好工作");
	}
}

上一篇:浏览器兼容性判定写法格式(ie)


下一篇:[题解]vijos 运输计划