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 17,759 public repositories matching this topic...

    awesome-software-architecture
    frontend-hard-mode-interview

    ใ€Šๅ‰็ซฏๅ†…ๅ‚ใ€‹๏ผŒๆœ‰ๅ…ณไบŽJavaScriptใ€็ผ–็จ‹่Œƒๅผใ€่ฎพ่ฎกๆจกๅผใ€่ฝฏไปถๅผ€ๅ‘็š„่‰บๆœฏ็ญ‰ๅคงๅ‰็ซฏ่Œƒ็•ดๅ†…็š„็Ÿฅ่ฏ†ๅˆ†ไบซ๏ผŒๆ—จๅœจๅธฎๅŠฉๅ‰็ซฏๅทฅ็จ‹ๅธˆไปฌๅคฏๅฎžๆŠ€ๆœฏๅŸบ็ก€ไปฅ้€š่ฟ‡ไธ€็บฟไบ’่”็ฝ‘ไผไธšๆŠ€ๆœฏ้ข่ฏ•ใ€‚

    • Updated Aug 27, 2025
    • JavaScript