Tag: OOP
9 posts
-
[2026] JavaScript Classes | ES6 Class Syntax Explained
JavaScript ES6 classes: constructors, getters/setters, static methods, inheritance with extends and super, private fields (#), and common mistakes—OOP p...
-
[2026] Python Classes | Object-Oriented Programming (OOP) Explained
Learn Python OOP: classes, __init__, self, inheritance, encapsulation, property, magic methods, abstract classes, and polymorphism—with examples.
-
[2026] Go in 2 Weeks #03 | Day 5–6: OOP Without Classes — Prefer Composition Over Inheritance
No class keyword in Go: structs, methods, pointer vs value receivers, embedding, and NewXxx constructors compared to C++. Part of the 2-week Go series f...
-
[2026] C++ Classes and Objects: Constructors, Access Control, and Destructors
Beginner-friendly OOP in C++: class vs object, constructors, public/private, encapsulation, destructors, shallow vs deep copy pitfalls, and const member...
-
[2026] C++ Diamond Problem: Multiple Inheritance & Virtual Bases
C++ diamond inheritance explained: ambiguous common base, virtual inheritance, ctor rules, and alternatives—composition and interface splitting.
-
[2026] C++ friend Keyword: Access Control, Operators, and Encapsulation
friend functions and classes grant access to private and protected members. When to use friend for operators and factories, and how to avoid excessive c...
-
[2026] C++ Inheritance & Polymorphism: virtual, Interfaces, and Patterns
C++ inheritance and polymorphism: public inheritance, virtual functions, abstract classes, virtual destructors, slicing, template method, and compositio...
-
[2026] C++ static Members: Static Data, Static Functions, and inline static (C++17)
Class static members shared by all instances: declaration vs definition, ODR, thread safety, singletons, factories, and C++17 inline static in headers.
-
[2026] C++ Virtual Functions: Polymorphism, override, and Pure Virtual
Virtual functions in C++: dynamic dispatch, virtual vs non-virtual, pure virtual and abstract classes, virtual destructors, vtables, and slicing pitfalls.