DEV Community

Cover image for Object Oriented Programming (OOP)
Jack Pritom Soren
Jack Pritom Soren

Posted on

2 1

Object Oriented Programming (OOP)

What is OOP ?

Object Oriented programming (OOP) is a programming paradigm that relies on the concept of classes and objects. It is used to structure a software program into simple, reusable pieces of code blueprints (usually called classes), which are used to create individual instances of objects.

oop Pic

Advantage :

  • Reusable, objects can be used across programs

  • OOP models complex things as reproducible, simple structures

  • Easier to debug, classes often contain all applicable information to them

  • Secure, protects information through encapsulation

Structure of OOP :

The structure, or building blocks, of object-oriented programming include the following:

  • Classes

  • Objects

  • Methods

  • Attributes

Main Principles of OOP :

  • Encapsulation

  • Abstraction

  • Inheritance

  • Polymorphism

Programming languages designed primarily for OOP include:
Java,Python,C++

Other programming languages that pair with OOP include:
PHP,JavaScript

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay