Maryam B
2009-11-30 12:45:11 UTC
2. _____ An object of the type of an abstract class has more than one type.
3. _____ A call to the parent constructor creates the parent object that the child object might need.
4. _____ If a constructor does not contain an invocation of either super(..) or this(..) methods, then Java automatically inserts an invocation of super() as the first statement in the body of that constructor’s definition.
5. _____ private members of a parent class cannot be accessed by name in the sub-class.
6. _____ An overriding method can have a different return type than the overridden method.
7. _____ You must use the super keyword when accessing an inherited member from the parent class.
8. _____ Adding the final modifier to a method heading forces sub-classes to use the inherited version and hence prohibits overriding it.
9. _____ An abstract method may also be declared with the final modifier.
10. _____ A class that implements an interface must provide implementations for all the methods specified in that interface unless it is declared as abstract.