日期:2014-05-20 浏览次数:20621 次
public class Study
{
public static void main(String[] args)
{
Employee a = new Employee(50, 60);
System.out.println(a.salary);
System.out.println(a.x);
System.out.println(a.y);
}
}
class Employee
{
double salary;
public Employee(double x, double y)
{
salary = 30;
}
}
class Employee
{
double salary;
double x, y;
public Employee(double x, double y)
{
this.x = x;
this.y=y;
salary = 30;
}
}