Inheritance

Table of contents:

This third and final chapter on object-oriented programming covers inheritance, the ability to specify that a class is "just like that other one, except ...." Section 3.1 explains how and when to create a subclass that inherits code from the class it extends. The Object class, from which all other classes are ultimately derived, is described in Section 3.2. Section 3.3 discusses packages (collections of classes) and access levels, which give us finer control over who can see which parts of our classes.


Extending a Class

Part I: Object-Oriented Programming

Encapsulation

Polymorphism

Inheritance

Part II: Linear Structures

Stacks and Queues

Array-Based Structures

Linked Structures

Part III: Algorithms

Analysis of Algorithms

Searching and Sorting

Recursion

Part IV: Trees and Sets

Trees

Sets

Part V: Advanced Topics

Advanced Linear Structures

Strings

Advanced Trees

Graphs

Memory Management

Out to the Disk

Part VI: Appendices

A. Review of Java

B. Unified Modeling Language

C. Summation Formulae

D. Further Reading

Index



Data Structures and Algorithms in Java
Data Structures and Algorithms in Java
ISBN: 0131469142
EAN: 2147483647
Year: 2004
Pages: 216
Authors: Peter Drake

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net