public class Met {
public static void main(String[] args){
Object[] List = {
new Student(),
new Schoolboy()
};
}
public static class Student{
private boolean id=true;
public boolean isId() {
return id;
}
}
public static class Schoolboy{
private boolean id=false;
public boolean isId() {
return id;
}
}
}