Java Reference
In-Depth Information
The instanceof keyword is used to determine if an object is an instance
of a particular class.
■■
Methods in Java are virtual methods, meaning that an overridden
method invoked at run time is dynamically invoked in the appropriate
child class.
■■
Abstraction is the ability to write an abstract class. An abstract class
is a class that cannot be instantiated. The abstract keyword is used to
declare a class as abstract.
■■
The abstract keyword is also used to declare a method as abstract. An
abstract method does not have any method body, and a class that con-
tains an abstract method must be declared abstract as well. An abstract
method must be overridden in any child classes, or the child class must
also be abstract.
■■
Search WWH ::




Custom Search