Thursday, July 13, 2006

Basic OO Principles

What the heck about basic OO principles? Well, keeping that in mind would help you write good OO programs that is easily readable and maintenanble. And what are thos basic object oriented programming principles?

They are as following:
  1. Program to interface and not to implementation
  2. Classes should be open for extensibility but close for modification
  3. Prefer composition over inheritance
  4. Ensure loose coupling.