المشاركات

أحدث المقالات

JavaScript Object Oriented Programming Tutorial Beginners - OOP in JavaScript

صورة
  Hi everyone! In this article we're going to review the main characteristics of object oriented programming (OOP) with practical JavaScript examples. We will talk about OOP main concepts, why and when it can be useful, and I'll give you plenty of examples using JS code. Bring it on! Table of Contents Intro to Object-Oriented Programming How to Create Objects – Classes Some things to keep in mind about classes The four principles of OOP Inheritance Some things to keep in mind about inheritance Incapsulation Abstraction Polymorphism Object Composition Roundup Intro to Object-Oriented Programming Entities are coded as  objects ,   and each entity will group a given set of information ( properties ) and actions ( methods ) that can be performed by the entity. OOP is very useful on large scale projects, as it facilitates code modularity and organization. By implementing the abstraction of entities, we're able to think about the program in a similar way as our world works, wit...