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 4,952 public repositories matching this topic...

    AI时代,人人都是架构师。本项目旨在研究设计模式、编程范式、设计原则与微服务架构等,通过C/Java/Go/JavaScript/Python等多种语言实现样例。帮助您深入理解问题本质,在复杂系统中做出合理的架构决策,驱动AI干活。

    • Updated Mar 13, 2026
    • Java