Skip to main content

Posts

Showing posts from February, 2018

OOP : A Quick Introduction

Basics Concepts in OOP    One of the major drawbacks of procedural programming is that it's hard to model Real world problems with it as it is more action oriented. In object oriented programming we divide problem into a number of entities. These entities are called objects. An object have its own data and methods(or functions) which operate on this data. The data is hidden i.e. it cannot be access by functions outside of the object. OOP allows us to model real life problems in our program in a much easier way and makes the program more secure, extensible as compared to procedural approach. Basic concepts of object oriented programming There are some basic concepts in object oriented programming which must be understood before learning  any object oriented programming language. These are, Objects and classes Data encapsulation Data abstraction Inheritance Polymorphism Dynamic binding Message passing So let's discuss these one by one, Objects and classe