Friday, 15 November 2013

What's the purpose of Object Oriented Programming?

look
when object oriented programming was not invented then programmers used procedural programming methods
i.e. whole program was just one part and the sequential flow of the program was there
the programs were not so much readable and if there was some big problem to solve then programmers needed to code in a hectic way as no grouping facilities were there.
 
In object oriented programming, we can form groups of code for specific purpose, those are called as methods
 
and we can create the objects those are instances of the classes we have created. These objects can call the methods of respective classes
 
also
 
the object oriented programming concepts allow us to use some features like data encapsulation which allows us to protect our data from outer methods, concept of polymorphism which allows us to use same method name for different purposes and many features


http://en.wikipedia.org/wiki/Object-oriented_programming

1 comment: