Question: Question 1: Can a subclass constructor call it's superclass constructor? Question options: 1. Yes, and it can be anywhere in the constructor 2. Yes, but
Question 1: Can a subclass constructor call it's superclass constructor? Question options:
1. Yes, and it can be anywhere in the constructor
2. Yes, but the call must be the last statement of the constructor
3. Never
4. Yes, but the call must be the first statement of the constructor
Question 2:
If a parent class has a public method called MyMethod then the child classes:
Question options:
|
|
Must implement MyMethod
|
|
|
May implement MyMethod and the parameters may or may not match
|
|
|
Must not implement MyMethod
|
|
|
May implement MyMethod but only if the parameters match
|
|
|
May implement MyMethod but only if the parameters do not match
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
