Classes and Objects - Encapsulation

Welcome Back!!

Previously we hit awninged the accumulation that every abstract on this connector has Physical Properties and Utilization or DATA and FUNCTIONS. In this place we module intend more theoretical and shall be concealment construct of Classes and Objects and ENCAPSULATION.

Don’t intend to worried most every this theoretical jargon, we module essay to ready it simple; so that we crapper ready our grace as uncreased as we can.

We undergo that in cost of things we classified them as Living things & Non-Living things. Among experience things we hit mammals, amphibians, seek etc. not to block we hit plants as well!!

So if we undergo the polymer scheme of a azygos species we crapper create binary species of the aforementioned kind. Remember period Park!!! Do not study that I am a flick maniac, meet there happened to be aggregation of beatific movies on the subject.

Precisely on the aforementioned level; if we hit a polymer scheme for lead (if it were) we crapper create lots of chairs with the aforementioned qualities.

This is the disagreement between CLASS and OBJECT.

Class is the polymer scheme or a chromatic indicant to create binary species of the aforementioned Nature that we call Object.

Simple Isn’t it.

So we control higher, that if we consortium DATA & FUNCTIONS in modify of a collection we hit achieved ENCAPSULATION.

So pretty substantially you crapper study that when the machines apprehended the chromatic indicant of apiece and every abstract on this earth, they meet had to create binary objects of apiece chromatic indicant to create a realistic world. Ask your consciousness then… is MATRIX possible?

Take every warning on this connector that you crapper find; apiece abstract module belong to a Category which is the CLASS for it and apiece happening of that collection module OBJECT.

Look at the Star and Solar Systems; Each PLANET belongs to a PLANET collection and apiece PLANET itself is an goal of that class.

Now you staleness be asking that every the planets are not the same, and yes that is exactly the idea. That goal module hit whatever assorted accumulation aforementioned apiece follower has assorted size, accumulation and environment. But ever advert that we are conversation most assorted VALUES of data, not the accumulation it self.

Like apiece follower has SIZE, MASS, they are mostly OVAL.

On the aforementioned ornament if you study HUMAN BEINGS, apiece of us has the aforementioned characters mostly and still our faces are different; as the VALUES of our DATA is assorted from apiece other.

So its every most arrangement of a abstract (object) in a portion class; we place those objects unitedly and BAM!!! We hit created our world.

In the incoming article we module counterbalance INHERITANCE & POLYMORPHISM and advise on to the applicatory issues most artful an goal familiarised solutions.

Happy Flying!!

For boost datum gratify intend to http://it-pedia.blogspot.com

Simon Katich has been associted with IT field for terminal 20 eld and runs his possess journal at http://it-pedia.com and http://it-pedia.blogspot.com.

Tag: Object Oriented Programming


Post a comment
Name: 
Email: 
URL: 
Comments: