Java's Object Orientation, I/O
CS 161 - Java
Key aspects of Object Oriented Programming
Encapsulation
A class should contain all the logic necessary to define how objects of the class work and no more.
Inheritance
In Java one class
extends
another class. In doing so the derived class should do something in addition, or in a different way, from the parent (super) class.
Polymorphism
Objects can expose different sets of capabilities at different times during a programs execution.
In Java this is done by extending other classes and by implementing various interfaces.
jwd