Object Oriented Programming in JAVA
CS 201
 

Encapsulation
  • Encapsulation is nothing but Information Hiding
     
  • We don't need to know how some components are implemented to use it
     
  • Implementation can change without effecting any calling code
     
  • Encapsulation example
    -- An encapsulated object can be thought of as a black box
    -- Its inner workings are hidden to the client, which only invokes the interface methods

                                       

Prev | Home | Next


Mihir Patel | CS561
Illinois Institute of Technology