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…

Object Oriented Concepts: Encapsulation

Book definition of Encapsulation is : “Binding of Data as well as Methods to a single unit”, What does it mean? Imagine you are building an online Job Portal and you accept parameters like Name of the User, Age and other demographics. The adds his/her information in your system: Here we are creating a user…