class Student
{
public String name;
private int age;
public String getName(){
return name;
}
public void setName(String name){
this.name=name;
}
public int getAge(){
return age;
}
public void setAge(int age){
this.age=age;
}
}
class demo1{
public static void main(String [] args){
Student s1=new Student();
s1.setName("java");
s1.setAge(178);
System.out.println(s1.getName()+" "+s1.getAge());
Student s2=new Student();
s2.setName("java1");
s2.setAge(178);
System.out.println(s2.getName()+" "+s2.getAge());
}
}