Object Oriented Concepts: Inheritance

In this post we will be discussing What inheritance is? Why do we need inheritance? Types of Inheritance Inheritance in programming is acquiring attributes or properties from the parent class. With inheritance we can re-use code this helps us to create and maintain applications. Assume you have an application where customer can customize their furniture….

Object Oriented Concepts: Polymorphism

When you lookup for the meaning of word “Polymorphism” , you get “many forms” or “ability to take multiple forms”. What does this mean in terms of programming? Here the addition operator is adding two numbers in the first example and in the second it is concatenating strings this is polymorphism. Following is an example…

Structural Design Pattern: Decorators

As per Wiki┬ástructural design patterns┬áare┬ádesign patterns┬áthat ease the┬ádesign by identifying a simple way to realize relationships among entities. In this post we will discuss Decorators. Decorators, add additional features to object dynamically without using sub-classing Let’s consider an analogy here, our bakery needs some automation, everyday I spend few hours setting up appliances like pre-heating…