编写构造方法,赋予n1和n2初始值,再为该类定义加、减、乘、除等公有成员方法,分别对两个成员变量执行加、减、乘、除的运算。
publicclassNumber{privateintn1;privateintn2;publicNumber(){}publicNumber(intn1,intn2){this.n1=n1;this.n2=n2;}publicintgetN1(){returnn1;}publicvoidsetN1(intn1){this.n1=n1;}publicintgetN2(){returnn2;}pu