Due: Friday, October 20, 2017, 11:00 am (Session A) 1:00 pm (Session B) (start of the class)

Do some research regarding Java polymorphism, and answer the following questions.

  1. What must a non-abstract child do about an abstract method in its parent class?
  2. What is the name of the class that is the ancestor to every other class in Java?
  3. Examine the following code:
    	String str = "Hello World";
    
    	boolean switch = str instanceof String;
    

    What value is placed in switch?

© 2017 Ying Li. Page last modified: .