Skip to content
#

Object-oriented programming (OOP)

Object-oriented programming (OOP) is a programming paradigm based on the concept of objects fundamental to many programming languages, including Java and C++. OOP can be devided in two sub types: class-based (or “classical”) and prototype-based OOP (found in JavaScript, for example).

Object-oriented programming has several advantages over procedural programming:

  • OOP provides a clear structure for the programs
  • OOP helps to keep the code DRY “Don’t Repeat Yourself”, and makes the code easier to maintain, modify and debug
  • Logic can be abstracted, encapsulated, composed, inherited and decoupled
  • Here are 218 public repositories matching this topic...

    Mini_RPG

    Mini RPG en Ruby con tipado estático usando Sorbet. Implementa personajes con atributos y métodos para atacar y recibir daño. Incluye validación de tipos en tiempo de ejecución y ejemplos de batalla por consola. Ideal para aprender Sorbet y POO tipada en Ruby.

    • Updated Aug 7, 2025
    • Ruby

    In this app, you create a console app that will help you to keep a record of different types of things you own: books, music albums, movies, and games. Everything will be based on the UML class diagram presented below. The data will be stored in JSON files but you will also prepare a database with tables structure analogical to your program's class

    • Updated Jan 23, 2024
    • Ruby