View RSS Feed

Recent Blogs Posts

  1. Java - Encapsulation

    by , 04-26-2012 at 07:09 PM
    Among four fundamentals of OOP concepts, encapsulation is the important one. Other three included are abstraction, polymorphism and inheritance.

    Encapsulation is basically a field making technique in class private which also provides an access to the fields through public methods. When fields have been declared private then no one presnt outside of the class has access, thereby fields are hided in class. This is the reason encapsulation is given another name “data hiding”.