标签:技术 static on() public str stat new java面向对象 ima
class Personpublic class Earth
{
public static void main(String[] args)
{
Person person1 = new Person();
Person person2;
person2 = new Person();
person1.age = 18;
System.out.println("person1:" + person1.age);
System.out.println("person2:" + person2.age);
person1.eat();
person2.sleep();
}
}
标签:技术 static on() public str stat new java面向对象 ima
原文地址:https://blog.51cto.com/9165794/2463575