Blog

Filter posts by Category Or Tag of the Blog section!

object oriented programming in nutshell

Friday, 08 February 2013

Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data and code to manipulate that data. OOP focuses on the design and creation of objects that interact with one another to accomplish tasks.

The key features of OOP include:

  1. Encapsulation: The practice of hiding data and implementation details within objects, which can only be accessed through public methods or interfaces.

  2. Inheritance: The ability for objects to inherit attributes and behavior from a parent class or object.

  3. Polymorphism: The ability for objects to take on multiple forms and behave differently depending on the context in which they are used.

  4. Abstraction: The process of identifying essential features of an object and ignoring the irrelevant details.

  5. Composition: is about what an object is made of. For example, a car is composed of different parts, such as four wheels, several seats, and an engine.

  6.  Aggregation: is about what can be combined with an object. For example, a person is not part of a car object, but they could sit in the driver's seat and then becomes the car's driver—two separate objects that are aggregated together to form a new component. 
     

OOP languages, such as C#, Java, Python, and C++, are widely used in software development because they offer a powerful way to organize code and promote modular design. OOP allows developers to write reusable code and build complex systems that can be easily extended and maintained over time. OOP languages are mostly used in enterprise application development whilst there are lots of Non-Enterprise software out there written by these languages.

comments powered by Disqus