/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */package jiao;
/**
 *
 * @author Administrator
 */
public  class Students {
 String stuName;
 int stuAge;
 int stuNum;
Students(){
    this.stuName="jiao";
    this.stuAge=20;
    this.stuNum=21;
}
Students(String stuName,int stuNum){    this.stuName=stuName;
    this.stuNum=stuNum;}
void studentNum(int stuNum){
this.stuNum=stuNum;
}
public int getstudentNum(){
return stuNum;
}
void setstuName(String stuName){
    this.stuName=stuName;
}
public String getstuName(){
    return stuName;
}
void setstuAge(int stuAge){
    this.stuAge=stuAge;
}
public int getstuAge(){
    return stuAge;}
public static void main(String[] args){
    Students stu1=new Students();
    System.out.println(stu1.getstuName()+"\n"+stu1.getstudentNum());
    Students ss=new Students("dddd",30);
    System.out.println(ss.getstuName());
    System.out.println(ss.getstudentNum());
    
}}