Java Reference
In-Depth Information
FIGURE 10-61b
FIGURE 10-61c
4 Polymorphic Behavior Provided by an Interface
When specific behavior is inherited, yet implemented uniquely within child
classes, an abstract class may be used. Often, this same behavior can be required
through the use of an interface, rather than through inheritance. This allows a
change in the inheritance hierarchy, removing a layer of direct inheritance and
using Java's implementation of multiple inheritance through interfaces.
(continued)
Search WWH ::




Custom Search