- A void
- B return
- C extends
- D super
- Share this MCQ
Answer:
C
Share this MCQ
Justification:
- The void keyword is only used with methods. This indicates that a given method does not return a value.
- The return keyword is not a valid keyword to be used with classes.
- The extends keyword is used in the class declaration to determine which class the given class is extending or inheriting from.
- The super keyword is called within a method and indicates whether or not to call the method of the same name from the parent class.
Related Lesson: Class Inheritance
Click me to Read more Question & Answer of Module 13: ClassesShare this MCQ