}
public boolean compareAge(Person p){
return this.age == p.age;
}
public void show(){
System.out.println(name+":"+country);
}
}
public class PersonDemo{
public static void main(String[] args){
Person p1 = new Person(23);
Person p2 = new Person(34);
System.out.println(p1.compareAge(p2));
p1.show();