Skip to content

The pillars of OO

July 22, 2011

Im always trying to understand what the true pillars of OO are, yesterday, i came across a 20 minute video that does a fine job discussing and implementing what the author thinks are 4 pillars of OO.  He implements them using C++, which, i am reminded is a nice succinct language.

Encapsulation – hiding data away in the place where it should be, in the object.

 

Inheritance – establishing common behavior in a class whose characteristics are passed along to other classes.

 

Polymorphism – different behavior from a method depending on which class is called.

 

abstraction – placing complexity behind an interface where the user does not have to be concerned about it.

Advertisements

From → Java

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: