Tag

object-oriented programming

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 6, 2025 · Backend Development

Master PHP Accessors & Mutators: Boost Data Handling with Real Code Examples

This article explains PHP accessors and mutators, shows how to implement them with practical code, and demonstrates advanced uses such as data validation, range limiting, and caching to create more robust and maintainable backend applications.

AccessorsMutatorsPHP
0 likes · 7 min read
Master PHP Accessors & Mutators: Boost Data Handling with Real Code Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 18, 2025 · Fundamentals

Strategy Design Pattern in Java: Definition, Structure, Example, and Refactoring

This article explains the behavioral Strategy design pattern, describes its definition and structure, demonstrates a real‑world e‑commerce discount scenario with both a tangled if‑else implementation and a clean refactoring using Java interfaces, concrete strategy classes, a context, and a client, and finally discusses its advantages and drawbacks.

JavaStrategy Patterndesign patterns
0 likes · 9 min read
Strategy Design Pattern in Java: Definition, Structure, Example, and Refactoring
php中文网 Courses
php中文网 Courses
Apr 28, 2025 · Backend Development

Using Closure Functions to Encapsulate Reusable Code Blocks in PHP

This article explains how PHP closures can capture external variables, demonstrates practical examples of wrapping reusable logic in anonymous functions, and shows how to combine closures with object‑oriented programming to improve code reuse and maintainability.

Anonymous FunctionsPHPbackend development
0 likes · 5 min read
Using Closure Functions to Encapsulate Reusable Code Blocks in PHP
php中文网 Courses
php中文网 Courses
Apr 2, 2025 · Backend Development

Understanding Getters and Setters in PHP

This article explains the purpose, implementation, and benefits of getters and setters in PHP, providing clear examples of how to define, use, and combine these methods to ensure data validation, encapsulation, and safer object-oriented code.

PHPbackend developmentgetters
0 likes · 6 min read
Understanding Getters and Setters in PHP
Test Development Learning Exchange
Test Development Learning Exchange
Mar 6, 2025 · Fundamentals

Understanding Class Attributes in Object‑Oriented Programming with Examples

This article explains the concept of class attributes in object‑oriented programming, contrasts them with instance attributes, and demonstrates ten practical scenarios—including shared data, default values, instance counting, singleton and factory patterns—through clear Python code examples and usage guidelines.

Class AttributesFactoryPython
0 likes · 10 min read
Understanding Class Attributes in Object‑Oriented Programming with Examples
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.

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

Understanding PHP 8.4 Property Hooks: Benefits, Examples, and Best Practices

PHP 8.4 introduces Property Hooks, a powerful feature that replaces traditional getters and setters with concise, type‑safe syntax, offering simplified code, enhanced encapsulation, automatic validation, and performance gains, illustrated through banking and e‑commerce pricing examples and practical implementation guidelines.

Property Hooksbackend developmentobject-oriented programming
0 likes · 6 min read
Understanding PHP 8.4 Property Hooks: Benefits, Examples, and Best Practices
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.

OOPPHPbackend development
0 likes · 10 min read
Understanding PHP Classes: Concepts, Benefits, and Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Jan 6, 2025 · Fundamentals

Python Introspection: Exploring Object Structure and Dynamic Programming

Python introspection allows programs to examine their own structure at runtime, enabling dynamic manipulation of objects, classes, and methods through built-in functions and modules.

MetaclassesPythonattribute-access
0 likes · 5 min read
Python Introspection: Exploring Object Structure and Dynamic Programming
php中文网 Courses
php中文网 Courses
Nov 12, 2024 · Backend Development

Best Practices for Object-Oriented Programming in PHP

This article presents PHP OOP best‑practice guidelines—including class design, access modifiers, constructors, method chaining, and the Strategy pattern—illustrated with clear code examples to improve readability, maintainability, and flexibility.

Best PracticesOOPPHP
0 likes · 4 min read
Best Practices for Object-Oriented Programming in PHP
Test Development Learning Exchange
Test Development Learning Exchange
Nov 1, 2024 · Fundamentals

Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More

This article provides a comprehensive Python tutorial covering variables, data types, control structures, functions, classes, standard library modules, file I/O, exception handling, comprehensions, generators, decorators, modules, virtual environments, coding style, and Git version control, complete with example code snippets.

FunctionsProgramming BasicsPython
0 likes · 14 min read
Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More
Test Development Learning Exchange
Test Development Learning Exchange
Sep 30, 2024 · Fundamentals

Understanding Data Encapsulation and Private Attributes in Object‑Oriented Programming (Python Examples)

This article explains the concept of data encapsulation and the role of private attributes in object‑oriented programming, illustrating their benefits and usage through multiple Python code examples covering simple classes, private methods, inheritance, property decorators, and descriptors.

OOPPrivate Attributesencapsulation
0 likes · 8 min read
Understanding Data Encapsulation and Private Attributes in Object‑Oriented Programming (Python Examples)
Test Development Learning Exchange
Test Development Learning Exchange
Sep 29, 2024 · Fundamentals

Python Basics: Variables, Data Types, and Object-Oriented Programming

This tutorial introduces Python fundamentals, covering variable assignment, data types, control structures, functions, modules, exception handling, file operations, and object‑oriented programming with class definitions, methods, and object instantiation, illustrated by practical code examples.

Data Typesobject-oriented programmingprogramming fundamentals
0 likes · 5 min read
Python Basics: Variables, Data Types, and Object-Oriented Programming
Test Development Learning Exchange
Test Development Learning Exchange
Sep 25, 2024 · Fundamentals

Duck Typing and Polymorphism in Python

This article explains duck typing and polymorphism in Python, two fundamental object-oriented programming concepts, with practical code examples demonstrating how objects can be treated based on their behavior rather than their type.

Dynamic TypingPythonduck typing
0 likes · 8 min read
Duck Typing and Polymorphism in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 20, 2024 · Fundamentals

Comprehensive Python Programming Guide: Data Types, Control Flow, Functions, OOP, and Advanced Features

This guide provides a thorough overview of Python programming, covering basic data types, control flow statements, function definitions, modules and packages, exception handling, file I/O, object‑oriented concepts, iterators, generators, context managers, decorators, functional programming, asynchronous code, metaclasses, standard and third‑party libraries, type annotations, design patterns, and practical tips such as enums and dataclasses.

Advanced PythonAsync ProgrammingMetaclasses
0 likes · 19 min read
Comprehensive Python Programming Guide: Data Types, Control Flow, Functions, OOP, and Advanced Features
Deepin Linux
Deepin Linux
Sep 4, 2024 · Fundamentals

Comprehensive Overview of C/C++ Language Features, Standard Library, and Object‑Oriented Concepts

This article provides an extensive guide to C/C++ fundamentals, covering static and const qualifiers, references versus pointers, memory‑management techniques, STL container implementations, iterator behavior, object‑oriented principles, virtual functions, smart pointers, and modern C++11 features for both beginner and experienced developers.

C++C++11STL
0 likes · 44 min read
Comprehensive Overview of C/C++ Language Features, Standard Library, and Object‑Oriented Concepts
Test Development Learning Exchange
Test Development Learning Exchange
Jun 15, 2024 · Fundamentals

Understanding Python's callable() Function: A Comprehensive Guide

This article explores Python's callable() function, explaining its purpose, principles, and practical applications through detailed code examples, helping readers master this essential tool for understanding Python's object-oriented and functional programming features.

Functional Programmingcallable functioncallback functions
0 likes · 4 min read
Understanding Python's callable() Function: A Comprehensive Guide
Test Development Learning Exchange
Test Development Learning Exchange
Apr 15, 2024 · Fundamentals

Python Basics: Variables, Data Types, Control Flow, Functions, and More

This guide introduces Python fundamentals, covering variable declaration, common data types, conditional statements, loops, functions, list comprehensions, exception handling, classes, generators, decorators, and module imports, each illustrated with clear code examples for beginners.

Data TypesFunctionsPython
0 likes · 5 min read
Python Basics: Variables, Data Types, Control Flow, Functions, and More
php中文网 Courses
php中文网 Courses
Apr 15, 2024 · Fundamentals

Understanding Abstraction in Object-Oriented PHP Programming

This article explains the core concept of abstraction in software engineering, illustrating how using interfaces and abstract methods in PHP can simplify code, improve maintainability, and reduce developer focus on low‑level details, demonstrated through concrete Shape examples for rectangles, circles, and triangles.

PHPabstractioninheritance
0 likes · 5 min read
Understanding Abstraction in Object-Oriented PHP Programming
Test Development Learning Exchange
Test Development Learning Exchange
Mar 2, 2024 · Fundamentals

Understanding Python Packages, Classes, and Methods

This article explains the concept and structure of Python packages, demonstrates how to import modules and manage packages with pip, and provides a comprehensive overview of defining classes, their variables, special methods, and different types of methods such as instance, class, and static methods.

Methodsclassesfundamentals
0 likes · 7 min read
Understanding Python Packages, Classes, and Methods