CS100 J Spring 2004
Quiz 2
In-class quiz given on 4/15
This quiz is worth one point. You earn one point if you get at least one question correct.

  1. Besides public, what visibility modifier (introduced during the previous lecture) designates that a component (variable or method) will be inherited?
    protected
  2. When you write a constructor in a subclass, Java inserts a method call if you do not call the superclass' constructor as the first statement in the constructor. What is the method call that is inserted automatically?
    super()