3 Flashcards
If a method has been overridden but you want to use the superclass version within the subclass, you can use the keyword ______ to access the parent class method.
super
In a subclass, the keywords __________ sometimes refer to the same method, but sometimes they do not.
this and super
The concept of keeping data private is known as
information hiding.
When you employ information hiding, your data can be altered only by the __________.
methods you choose and only in ways that you can control.
When a class serves as a superclass to other classes you create, your ________ inherit all the data and methods of the superclass.
subclasses
The methods in a subclass can use all of the data fields and methods that belong to its parent, with one exception: _________
private members of the parent class are not accessible within a child class’s methods.
___________ provides you with an intermediate level of security between public and private access.
Protected access
Sometimes when you create a class, you might choose ________
not to allow subclasses to override some of the superclass methods.
The three types of methods that you cannot override in a subclass are:
static methods
final methods
Methods within final classes