> Gimana caranya interface untuk Encapsulation? Apanya yang
> di-encapsulate dengan interface? Atau memisahkan type dari
> implementation lu sebut sebagai Encapsulation?

Interface sebagai encapsulation bisa digunakan untuk "information hiding".

Gw quote dari wikipedia

http://en.wikipedia.org/wiki/Information_hiding
In object-oriented programming, information hiding reduces software
development risk by shifting the code's dependency on an uncertain
implementation (design decision) onto a well-defined interface.
Clients of the interface perform operations purely through it so if
the implementation changes, the clients do not have to change.

Kirim email ke