Tag

OOP

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Jun 15, 2025 · Fundamentals

How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse

This article explains C++ polymorphism, shows how virtual functions and inheritance break tight coupling, improve code reuse, simplify extensions, and enhance maintainability, and demonstrates its role in common design patterns such as Strategy and Factory Method with clear code examples.

C++OOPcode reuse
0 likes · 20 min read
How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse
php中文网 Courses
php中文网 Courses
May 14, 2025 · Backend Development

Why Static Methods Should Be Avoided in PHP and Better Alternatives

The article explains that overusing static methods in PHP violates core OOP principles, hampers testability, creates global state, and reduces extensibility, while outlining appropriate scenarios for static usage and recommending alternatives such as dependency injection, service containers, and cautious singleton patterns.

OOPPHPdependency injection
0 likes · 6 min read
Why Static Methods Should Be Avoided in PHP and Better Alternatives
Java Captain
Java Captain
May 11, 2025 · Fundamentals

Understanding Abstract Classes and Interfaces: Design Principles and Practical Uses

Abstract classes and interfaces are core object‑oriented concepts that enable reusable, extensible, and maintainable code; this article explains their definitions, design considerations, and real‑world applications, illustrated with Java examples of a Control hierarchy and a Shape interface implementation.

Abstract ClassJavaOOP
0 likes · 5 min read
Understanding Abstract Classes and Interfaces: Design Principles and Practical Uses
php中文网 Courses
php中文网 Courses
Apr 30, 2025 · Backend Development

Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications

This article explains PHP's polymorphism—covering method overriding, simulated method overloading, interface polymorphism, traits, abstract classes, magic methods, and performance considerations—while providing clear code examples and discussing real‑world uses such as plugin systems, testing mocks, middleware, and strategy patterns.

OOPPHPTraits
0 likes · 9 min read
Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2025 · Fundamentals

Python Movie Ticket Booking System: Design, Code Walkthrough, and Usage Guide

This article presents a complete Python tutorial for building a command‑line movie ticket reservation system, covering the overall architecture, visual demonstration, detailed code explanations for data storage, seat selection, film selection, and the main controller, along with runnable code snippets.

Data StructuresOOPTutorial
0 likes · 9 min read
Python Movie Ticket Booking System: Design, Code Walkthrough, and Usage Guide
php中文网 Courses
php中文网 Courses
Apr 2, 2025 · Fundamentals

Understanding SOLID Principles in Python: A Guide to Object‑Oriented Design

This article explains the five SOLID object‑oriented design principles, illustrates each with Python code examples, discusses their benefits, and offers practical advice for applying them effectively in Python development to build maintainable and scalable software.

OOPPythonSOLID
0 likes · 9 min read
Understanding SOLID Principles in Python: A Guide to Object‑Oriented Design
php中文网 Courses
php中文网 Courses
Mar 31, 2025 · Fundamentals

Understanding Inheritance and Polymorphism in Python OOP

This article explains the core object‑oriented programming concepts of inheritance and polymorphism in Python, detailing their advantages, syntax, method overriding, and practical examples that demonstrate code reuse, extensibility, and flexible interfaces through class hierarchies and duck‑typing.

OOPPythoninheritance
0 likes · 7 min read
Understanding Inheritance and Polymorphism in Python OOP
Code Mala Tang
Code Mala Tang
Mar 25, 2025 · Fundamentals

Master Python Classes: From Basics to Advanced OOP Techniques

This comprehensive guide explains what Python classes are, why to create custom ones, and covers class design aspects such as methods, attributes, inheritance, data validation, static and class methods, read‑only properties, and practical code examples for each concept.

ClassesOOPPython
0 likes · 17 min read
Master Python Classes: From Basics to Advanced OOP Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Mar 19, 2025 · Fundamentals

Understanding Python Magic Methods: A Comprehensive Guide

This article explains Python's magic (dunder) methods, detailing their purpose, common special methods for initialization, comparison, arithmetic, container protocols, and other operations, and provides a practical code example to illustrate how they enable custom class behavior.

Code ExampleDunderMagic Methods
0 likes · 6 min read
Understanding Python Magic Methods: A Comprehensive Guide
Test Development Learning Exchange
Test Development Learning Exchange
Mar 6, 2025 · Fundamentals

Understanding Class Inheritance in Python: Basics, Overriding, Polymorphism, super() and Advanced Applications

This article explains Python class inheritance—from basic single inheritance and method overriding to polymorphism, super() calls, multiple inheritance, and design‑pattern implementations—providing code examples, usage scenarios, and best‑practice recommendations for writing reusable, extensible object‑oriented code.

OOPPythondesign patterns
0 likes · 10 min read
Understanding Class Inheritance in Python: Basics, Overriding, Polymorphism, super() and Advanced Applications
Python Programming Learning Circle
Python Programming Learning Circle
Mar 3, 2025 · Fundamentals

Using Abstract Base Classes (ABC) to Implement Interfaces in Python

This article explains how Python's Abstract Base Classes provide interface‑like contracts for OOP, demonstrates their use with a payment‑gateway example, shows how to build a plugin system, and highlights the benefits of early error detection, clear conventions, and extensibility.

OOPPlugin SystemPython
0 likes · 9 min read
Using Abstract Base Classes (ABC) to Implement Interfaces in Python
php中文网 Courses
php中文网 Courses
Feb 26, 2025 · Backend Development

Object-Oriented Programming in PHP: Core Concepts and Advanced Features

This article introduces PHP's object-oriented programming paradigm, covering fundamental concepts such as classes, objects, properties, methods, the four OOP principles, advanced features like constructors, destructors, static members, magic methods, and best practices for building modular and maintainable backend applications.

ClassesEncapsulationOOP
0 likes · 8 min read
Object-Oriented Programming in PHP: Core Concepts and Advanced Features
php中文网 Courses
php中文网 Courses
Feb 21, 2025 · Backend Development

PHP Functions and Modular Programming: Concepts, Best Practices, and Real-World Examples

This article explains PHP functions and modular programming, covering definitions, parameters, scope, anonymous functions, best practices, and real-world examples to help developers write more maintainable and efficient backend code in modern web applications.

FunctionsModular ProgrammingOOP
0 likes · 6 min read
PHP Functions and Modular Programming: Concepts, Best Practices, and Real-World Examples
php中文网 Courses
php中文网 Courses
Jan 21, 2025 · Backend Development

Understanding PHP Classes: Concepts, Benefits, and Practical Examples

This article introduces PHP classes as object blueprints, explains why they improve code organization, reusability, maintainability, and security, and provides concrete PHP 8.4 examples such as Product, ShoppingCart, User, Order, and best‑practice guidelines like SRP, encapsulation, and type safety.

ClassesOOPPHP
0 likes · 10 min read
Understanding PHP Classes: Concepts, Benefits, and Practical Examples
Code Mala Tang
Code Mala Tang
Jan 21, 2025 · Fundamentals

Master Python Classes: Inheritance, Composition, and Advanced OOP Techniques

This guide explores Python class fundamentals, covering inheritance versus composition, the use of super(), distinctions among instance, class, and static methods, dataclasses, the __dict__ attribute, name mangling, @property, dynamic class creation with type(), and __slots__ for attribute control.

ClassesOOPPython
0 likes · 9 min read
Master Python Classes: Inheritance, Composition, and Advanced OOP Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Jan 19, 2025 · Fundamentals

Understanding Classes and Objects in Python: Definitions, Instantiation, Attributes, Methods, Inheritance, Polymorphism, and Encapsulation

This article introduces Python's object‑oriented programming fundamentals, explaining how to define classes, instantiate objects, differentiate class and instance attributes, and use various method types, followed by practical examples of inheritance, polymorphism, and encapsulation to build well‑structured, maintainable code.

ClassesEncapsulationOOP
0 likes · 7 min read
Understanding Classes and Objects in Python: Definitions, Instantiation, Attributes, Methods, Inheritance, Polymorphism, and Encapsulation
Test Development Learning Exchange
Test Development Learning Exchange
Jan 7, 2025 · Fundamentals

Understanding Classes and Objects in Python: Concepts, Inheritance, Special Methods, and Advanced Examples

This article introduces Python's class and object fundamentals, covering class definitions, instance and class variables, inheritance, special (dunder) methods, and advanced examples such as encapsulation, operator overloading, and the use of class and static methods, all illustrated with clear code snippets.

ClassesEncapsulationOOP
0 likes · 10 min read
Understanding Classes and Objects in Python: Concepts, Inheritance, Special Methods, and Advanced Examples
php中文网 Courses
php中文网 Courses
Jan 2, 2025 · Backend Development

Using PHP Closures to Encapsulate Reusable Code Blocks

This article explains how PHP closures—anonymous functions that capture external variables—can be used to encapsulate reusable code blocks, demonstrates practical examples including data processing callbacks and integration with object‑oriented classes, and shows how this approach enhances code reuse, maintainability, and flexibility.

Anonymous FunctionsClosuresOOP
0 likes · 4 min read
Using PHP Closures to Encapsulate Reusable Code Blocks
php中文网 Courses
php中文网 Courses
Jan 2, 2025 · Backend Development

Understanding Constructors and Destructors in PHP

This article explains the purpose, syntax, and practical examples of PHP constructors (__construct) and destructors (__destruct), demonstrating how they initialize objects, manage resources, and simplify code through automatic execution during object creation and destruction.

DestructorOOPPHP
0 likes · 8 min read
Understanding Constructors and Destructors in PHP