Question: 7. To extend an abstract class, a class must: A. implement all abstract methods in the abstract class. (My answer) B. implement at least one
7. To extend an abstract class, a class must:
A. implement all abstract methods in the abstract class. (My answer)
B. implement at least one abstract method from the abstract class.
C include new methods.
D. specify the keyword implements
E. specify the keyword extends. (Correct answer)
Why is E the Correct answer
20. What is the purpose of the keyword this?
A. It allows you to instantiate an object and not give it a name. (my answer)
B. It allows you to instantiate an object when the class does not provide a constructor.
C. It allows a method in a class to pass a reference to the object currently represented by that class to a method in another class. (correct answer)
D. It is the mechanism by which polymorphism is implemented.
E. It allows you to extend an abstract class.
Why Is C the correct answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
