import java.io.*;
public class Worker {
/**
* @param args
*/
public static void main(String[] args) {
int[]Num=new int[6];
int Wage;
int NewWage;
Woker worker
System.out.println("Num"+woker.getNum()+"Wage"+woker.getWage()+"NewWage"+woker.getNewWage();)
}
class Woker
{
private int num;
private int wage;
private int newwage;
public void setNum(int num)
{
this.num=num;
}
public void setWage(int wage)
{
this.wage=wage;
}
public void setNewWage(int newwage)
{
newwage=wage+100;
}
public int getNum()
{
return this.num;
}
public int getWage()
{
return this.wage;
}
public int getNewWage()
{
return newwage;
}
}
这段程序怎么了啊
System.out.println("Num"+Woker.getNum()+"Wage"+Woker.getWage()+"NewWage"+Woker.getNewWage();
说这有问题
[此贴子已经被作者于2007-10-22 11:19:52编辑过]