Categories
Computer Science

Object Oriented Programming

(OOP)

Object-Oriented Programming (OOP) is a programming paradigm that organizes software design around objects — entities that combine data (attributes) and behavior (methods). It models real-world entities and promotes modularityreusability, and maintainability in code.

At its core, OOP uses classes as blueprints to create objects. A class defines the structure (attributes) and capabilities (methods) of its objects, while each object is an instance with its own state.

  • Class – A template or a blueprint that define attributes and methods.
  • Object – An instance of a class with specific data.
  • Attributes – Variables that store the state of an object.
  • Methods – Functions inside a class that define object behavior.
  1. Encapsulation – Bundling data and methods, restricting direct access to internal state.
  2. Abstraction – Hiding complex implementation details, exposing only necessary functionality.
  3. Inheritance – Allowing a class (child) to acquire properties and behaviors from another (parent).
  4. Polymorphism – Enabling the same method name to behave differently based on the object.
  • Code Reusability via inheritance.
  • Modularity for easier debugging and maintenance.
  • Security through encapsulation.
  • Flexibility with polymorphism for adaptable behaviors.

Priyanka B.'s avatar

By Priyanka B.

Hello and welcome to my little corner of internet!! I am a techie. I am very interested to discover and innovate new advances in science and technology. Blogging is one of my hobbies which I think is very useful for broadening my knowledge horizons and help me grow my skills. Apart from blogging I have also little taste in artistic skills and literature, which can keep my writing and posts tangy.

Whether you stumbled in by chance or came here on purpose, I hope you find something that sparks your curiosity or makes you think a little deeper. Thanks for stopping by!!

Leave a comment