Java Reference
In-Depth Information
7.1
Inheritance Basics
424
Derived Classes
415
7
Overriding a Method Definition
435
Changing the Return Type of an Overridden Method
435
Changing the Access Permission of an Overridden
Method
436
The
Constructor
438
super
The
Constructor
440
this
Example: An Enhanced
Class
445
StringTokenizer
Inheritance
7.2
Encapsulation and Inheritance
448
Protected and Package Access
450
7.3
Programming with Inheritance
456
Access to a Redefined Base Method
457
The Class
459
Object
The Right Way to Define
460
equals
Chapter Summary
468
Answers to Self-Test Exercises
469
Programming Projects
472
Search WWH ::




Custom Search