Interview Question
Abstractions may be formed by reducing the information content of a concept or an observable phenomenon, typically to retain only information which is relevant for a particular purpose.
For example, abstracting a leather soccer ball to the more general idea of a ball retains only the information on general ball attributes and behavior, eliminating the other characteristics of that particular ball.
Wikipedia
Java uses "abstract" to do this.
Abstraction - abstract keyword
- Anonymous August 08, 2011Encapsulation - Classes encapsulate data