Java Reference
In-Depth Information
7
Inheritance
7.1 INHERITANCE BASICS
428
7.2 ENCAPSULATION AND
INHERITANCE 452
Protected and Package Access 455
Derived Classes 429
Overriding a Method Definition 439
Changing the Return Type of an Overridden
Method 439
Changing the Access Permission of an Overridden
Method 440
The super Constructor 442
The this Constructor 444
Example: An Enhanced StringTokenizer
Class
7.3 PROGRAMMING WITH
INHERITANCE 461
Access to a Redefined Base Method 461
The Class Object 464
The Right Way to Define equals 465
449
Chapter Summary 472
Answers to Self-Test Exercises 473
Programming Projects 476
 
 
Search WWH ::




Custom Search