class Teacher
{
private String name;
private int age;
public Teacher(){}
public Tescher(String name, int age)
{
this.name=name;
this.age=age;
}
public void setName(String name)
{
this.name=name;
}
public String getName(String name)
{
return name;
}
public void setAge(String age)
{
this.age=age;
}
public String getAge(String age)
{
return age;
}
public void show(String name, int age)
{
System.out.println(name+"8888888"+age);
}
}
|
|