Skip to main content

15 docs tagged with "oop"

View all tags

Access Modifiers

Complete guide to public, private, and protected access modifiers in C++, encapsulation, friend functions, and best practices.

Attributes

Deep dive into attributes (data members) in C++ classes: object state, fields vs properties, getters/setters, and encapsulation techniques.

Classes & Objects

Explore Object-Oriented programming in TypeScript including classes, instances, constructors, and encapsulation access modifiers.

Classes and Objects in C++

An in-depth guide to Object-Oriented Programming in C++. Master classes, objects, access modifiers, constructors, destructors, inheritance, and polymorphism.

Classes and Objects in php

Object-Oriented Programming in php. Learn how to define classes, create objects, use constructors, properties, and methods.

Inheritance in C++

Master inheritance architectures in C++. Learn single, multiple, multilevel, and virtual inheritance, resolve structural ambiguities like the Diamond Problem, and manage constructor execution chains.

Inheritance in php

Inheritance allows a class to reuse properties and methods of another class. Learn single inheritance, method overriding, and the parent keyword in php.

Interfaces and Traits in php

Learn how to use interfaces and traits in php to implement contracts, share reusable methods, and work around single inheritance limitations.

Method Overriding

Method overriding allows a derived class to provide a specific implementation of a method that is already defined in its base class. This feature enables runtime polymorphism in object-oriented programming.

Methods

Comprehensive guide to methods in C++: declaration, invocation, parameters, return types, instance vs static, and best practices.

Namespaces in php

php namespaces allow you to organize code and avoid name collisions. Learn how to define, use, and alias namespaces in php.

Operator Overloading

Operator overloading allows you to redefine the way operators work for user-defined types (classes and structs). It enables you to specify more intuitive ways to perform operations on objects of your classes.

php OOP Best Practices

Learn best practices for writing clean, maintainable, and scalable object-oriented php code including SOLID principles, design patterns, and more.

Polymorphism in C++

Master polymorphism in C++. Explore compile-time static binding via function and operator overloading, versus runtime dynamic binding with virtual functions, vtables, and abstract interfaces.