Given these classes:
public class Person{
public void talk(){ System.out.print("I am a Person "); }
}
public class Student extends Person {
public void talk(){ System.out.print("I am a Student "); }
}
what is the result of this piece of code:
public class Test{
public static void main(String args[]){
Person p = new Student();
p.talk();
}
}