You are on page 1of 1

4/27/2018 Java Fundamentals - Teacher - English

Java Fundamentals - Teacher - Outline


EnglishCorrect
47. Which of the following correctly defines a subclass (or child class)? Mark for Review
(1) Points
A class that passes down its methods to more specialized classes.
A class that inherits methods and fields from a more general
class. (*)
A keyword that allows or restricts access to data and methods.
The most general class of a hierarchy system.

Correct
48. Which of the following correctly describes the use of the keyword Mark for Review
super? (1) Points
A keyword that allows subclasses to access methods, data, and
constructors from their parent class. (*)
A keyword that signals the end of a program.
A keyword that restricts access to only inside the same class.
A keyword that allows access from anywhere.

Correct
49. Which of the following is the correct way to call an overriden method Mark for Review
needOil() of a super class Robot in a subclass SqueakyRobot? (1) Points
Robot.needOil(SqueakyRobot);
needOil(Robot);
super.needOil(); (*)
SqueakyRobot.needOil();

Correct
50. Which of the following is the proper way to set the public variable Mark for Review
length of the super class equal to 5 from inside the subclass? (1) Points
super.length() = 5
super(length = 5)
super.length = 5 (*)
super.length(5)

Correct

Previous Page 10 of 10 Summary

http://ilearning.oracle.com/ilearn/en/learner/jsp/player.jsp?rco_id=2005567461&classroom_id=2031716710&scorm_attempt=1524799703122&sessionId=-5493528081

You might also like