|
This chapter expands on the discussion of classes and how to create
programs with them.
Java:
- Inheritance
- one of the most important aspects of OOP is the ability to create
a new class that extends, i.e. inherits, the capabilities of another
class.
- Method Overriding
- the subclass that extends a class, called the base class, can
contain new versions of methods in the base class. This technique
provides for so-called polymorphism.
- this
and super
references allow access to overloaded and overriden methods.
- More about
Constructors
- Abstraction
provides for great flexibility and conceptual clarity when designing
a class framework.
- Interface -
essentially a class with only abstract methods. They are used
in Java in place of multiple inheritance and for callbacks.
- Casting class references
- More about arrays
- creating arrays of objects, multi-dimensional arrays, and array
as an object.
- Object
class
- Summary of classes
and objects
Supplements:
Tech:
Physics:
Latest Update: Oct. 21, 2004
|
|
|