1 package GYY; 2 3 public class StudentDemo { 4 int XH; 5 String name; 6 int EngResult; 7 int MathResult; 8 int ComputerResult; 9 public StudentDemo(int XH,String name,int EngResult,int MathResult,int ComputerResult) { 10 XH=this.XH; 11 name=this.name; 12 EngResult=this.EngResult; 13 MathResult=this.MathResult; 14 ComputerResult=this.ComputerResult; 15 } 16 }
来源:https://www.cnblogs.com/Renqy/p/11428657.html