1.定义Person类 属性: 姓名name、性别gender、年龄age、国籍nationality; 方法:吃饭eat、睡觉sleep,工作work。
publicclassPerson{/*姓名*/privateStringname;/*年龄*/privateintage;/*国际*/privateStringnationality;publicPerson(){}publicPerson(Stringname,intage,Stringnationality){this.name=name;this.age=age;this.national