What is OOP( object-oriented programming)?
- zendnwar
- March 22, 2013
- Advanced PHP(OOP)
- 0 Comments
OOP is a programming paradigm that uses abstraction to create models based on the real world. It provides for better modeling of the real world by providing a much needed improvement in domain analysis and then integration with system design.
The power of object-oriented systems lies in their promise of code reuse which will increase productivity, reduce costs and improve software quality.
The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily passed around inside the system.
If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine.
By interacting only with an object’s methods, the details of its internal implementation remain hidden from the outside world.
Message passing is the process by which an object sends data to another object or asks the other object to invoke a method.
Each object can be viewed as an independent little machine with a distinct role or responsibility.
OOP is easier to learn for those new to computer programming than previous approaches, and its approach is often simpler to develop and to maintain, lending itself to more direct analysis, coding, and understanding of complex situations and procedures than other programming methods.
Object Oriented Programming is a mode of software development that modularizes and decomposes code authorship into the definition of actors and actions.