Close this search box.

The Basics – Four Pillars of Object Oriented Programming

What are the four pillars of OO programming?

a.       Inheritance 

                                                                           i.      (e.g. object triangle inherits from object shape)

b.      Abstraction

                                                                           i.      Expose relevant functions and hides irrelevant, abstract complexity, a wrapper, private vs public properties.

c.       Polymorphism

                                                                           i.      Many forms,  one interface having many behaviours. Invoke base class in a child clase.

d.      Encapsulation

                                                                           i.      Methods and functions are encapsulated in a class.

Print posted @ Wednesday, August 7, 2013 3:59 PM

This article is part of the GWB Archives. Original Author: Ron Maldonado

Related Posts