flâneur — a map of the web's best reading

Object-oriented programming

developer.mozilla.org · 1,954 words · saved by 1 readers

Object-oriented programming (OOP) is a programming paradigm fundamental to many programming languages, including Java and C++. In this article, we'll provide an overview of the basic concepts of OOP. We'll describe three main concepts: classes and instances, inheritance, and encapsulation. For now, we'll describe these concepts without reference to JavaScript in particular, so all the examples are given in pseudocode. Note: To be precise, the features described here are of a particular style of OOP called class-based or "classical" OOP. When people talk about OOP, this is generally the type that they mean. After that, in JavaScript, we'll look at how constructors and the prototype chain relate to these OOP concepts, and how they differ. In the next article, we'll look at some additional features of JavaScript that make it easier to implement object-oriented programs. Object-oriented programming is about modeling a system as a collection of objects, where each object represents some par

Object-oriented programming - Learn web development | MDN Skip to main content Skip to search Object-oriented programming Previous Overview: Advanced JavaScript objects Next Object-oriented programming (OOP) is a programming paradigm fundamental to many programming languages, including Java and C++. In this article, we'll provide an overview of the basic concepts of OOP. We'll describe three main concepts: classes and instances , inheritance , and encapsulation . For now, we'll describe these concepts without reference to JavaScript in particular, so all the examples are given in pseudocode .

Explore this link on the map →

related reading