Top
Previous Next
Interfaces, GUIs, and Applets CS 161 - Java

OO Highlights

Encapsulation

A mousetrap, student, roster, bank account, professor, ____________ should contain just what is needed to accomplish the problem task and support the required interface.

Implementation details should not be accessible outside of an object: objects should only expose publicly the methods and fields they are willing to maintain.

Inheritance

An object type that inherits from another can provide additional details (specialization) as well as extended capabilities provided by the more generic parent (super) class.

Creating abstract and generic classes and then sub classes that inherit from them can be useful, but ...


Top
Previous Next
jwd