Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Encapsulation : Complete Tutorial

Share this post!
 Vote this!

Object oriented programming is a new way of approaching the job of programming. Object oriented programming will seem very unnatural to a programmer with a lot of procedural programming experience. This tutorial is the beginning of the definition of object oriented programming, and we will study the topic of encapsulation which is a “divide and conquer” technique. As stated earlier, there are a lot of new terms used with object oriented programming. Don’t be intimidated by the new terminology, study the terms one at a time in a meaningful order.
Encapsulation is the process of forming objects. An encapsulated object is oftencalled an abstract data type and it is what object oriented programming is all about. Without encapsulation, which involves the use of one or more classes, there is no object oriented programming. Of course there are other topics concerning object oriented programming, but this is the cornerstone.
Most important feature of Object Oriented Programming is the object. Object is a logical entity which contains the data and code that manipulated that data. Within an object some data is private, and that data is inaccessible out side that object. So in this way an object protects the data from being modified by any third party. The linkage of data and code in this way is called encapsulation.  more...

0 comments:

Post a Comment