Assume we have a parent class Person and a child class Student both with a method called getID().

Person p = new Person();
int id = p.getID();

Which getID() method will run in this situation?

The getID() method defined in the Person class
  • the getID() method defined in the Student class
  • This code will produce an exception
  • We don't have enough information to answer this question

There are no hints for this question