Tagged articles
51 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 26, 2026 · Fundamentals

Java Classes and Objects: A Beginner’s Guide from Scratch

This article explains the fundamentals of object‑oriented programming in Java, covering objects, classes, inheritance, encapsulation, polymorphism, and packages with concrete examples that illustrate how real‑world concepts map to Java code and how objects interact through message passing.

EncapsulationInheritanceJava
0 likes · 12 min read
Java Classes and Objects: A Beginner’s Guide from Scratch
IT Services Circle
IT Services Circle
Mar 5, 2026 · Fundamentals

Simulating OOP Polymorphism in C with Function Pointers and Vtables

The article walks through a C programmer's journey from hard‑coded if‑else shape handling to embedding function pointers in structs, introducing shared function tables, automatic initialization, memory savings, inheritance via table overrides, and finally showing how C++ virtual functions automate the same mechanism.

C programmingInheritancePolymorphism
0 likes · 10 min read
Simulating OOP Polymorphism in C with Function Pointers and Vtables
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 25, 2025 · Fundamentals

Overloads vs Overrides in Java: When and How They Differ

This article explains the distinction between method overloading and method overriding in Java, covering their definitions, how the compiler or runtime selects the appropriate method, differences in method signatures, return types, and timing, and provides clear code examples for each concept.

JavaMethod OverloadingMethod Overriding
0 likes · 5 min read
Overloads vs Overrides in Java: When and How They Differ
Deepin Linux
Deepin Linux
Sep 10, 2025 · Fundamentals

Unlocking C++ Polymorphism: How Virtual Tables Enable Runtime Flexibility

This article explains how C++ implements polymorphism through virtual functions and vtables, covering static and dynamic polymorphism, memory layout, multiple inheritance, practical code examples, design‑pattern applications, and the importance of virtual destructors for safe resource cleanup.

CDesign PatternsOOP
0 likes · 35 min read
Unlocking C++ Polymorphism: How Virtual Tables Enable Runtime Flexibility
php Courses
php Courses
Aug 18, 2025 · Fundamentals

Mastering Polymorphism in C++: Virtual Functions, Override, and Final

This article explains C++ polymorphism, covering virtual functions, the override and final keywords, pure virtual functions, virtual destructors, vtable implementation, performance considerations, modern C++ improvements, and practical examples with code snippets.

Abstract ClassCOverride
0 likes · 9 min read
Mastering Polymorphism in C++: Virtual Functions, Override, and Final
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.

CDesign PatternsOOP
0 likes · 20 min read
How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse
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.

Design PatternsInterfacesMethod Overriding
0 likes · 9 min read
Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications
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.

InheritanceOOPPolymorphism
0 likes · 7 min read
Understanding Inheritance and Polymorphism in Python OOP
Test Development Learning Exchange
Test Development Learning Exchange
Mar 7, 2025 · Fundamentals

Mastering Polymorphism: 10 Real-World Python Examples and When to Use Them

This article explains the core concept of polymorphism in object‑oriented programming, distinguishes compile‑time and runtime polymorphism, and provides ten practical Python examples—from animal sounds and shape drawing to payment processing, file handling, logging, and game characters—illustrating when and how to apply each technique.

Design PatternsMethod OverloadingMethod Overriding
0 likes · 9 min read
Mastering Polymorphism: 10 Real-World Python Examples and When to Use Them
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.

Design PatternsInheritanceOOP
0 likes · 10 min read
Understanding Class Inheritance in Python: Basics, Overriding, Polymorphism, super() and Advanced Applications
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.

InheritanceOOPObjects
0 likes · 7 min read
Understanding Classes and Objects in Python: Definitions, Instantiation, Attributes, Methods, Inheritance, Polymorphism, and Encapsulation
Top Architecture Tech Stack
Top Architecture Tech Stack
Dec 9, 2024 · Fundamentals

Performance Impact of Clean Code Practices: A C++ Case Study

This article examines how strict adherence to clean‑code principles in C++—such as using polymorphism, limiting function size, and avoiding internal knowledge—affects runtime performance, comparing virtual‑function hierarchies, switch‑based implementations, and table‑driven approaches, and revealing up to fifteen‑fold speed differences.

CPolymorphismclean code
0 likes · 21 min read
Performance Impact of Clean Code Practices: A C++ Case Study
Deepin Linux
Deepin Linux
Aug 13, 2024 · Fundamentals

C++ Interview Topics: Smart Pointers, Memory Management, Polymorphism, and More

This article provides a comprehensive overview of common C++ interview questions, covering smart pointer implementations, memory management techniques, object-oriented concepts such as polymorphism and virtual functions, STL containers, threading, and modern C++ features like move semantics and coroutines.

C++PolymorphismSTL
0 likes · 64 min read
C++ Interview Topics: Smart Pointers, Memory Management, Polymorphism, and More
IT Services Circle
IT Services Circle
Jun 9, 2024 · Fundamentals

Understanding Type Erasure in C++ for Polymorphic Design

This article explains the concept of type erasure in C++, demonstrating how to achieve polymorphic behavior without a common base class by using wrapper classes, templates, and container storage, and provides multiple implementation approaches with complete code examples.

C++Polymorphismtemplates
0 likes · 11 min read
Understanding Type Erasure in C++ for Polymorphic Design
php Courses
php Courses
Jun 29, 2023 · Backend Development

Understanding PHP Dispatch Mechanism and Method Overriding

This article explains PHP's dispatch mechanism, showing how the runtime selects the appropriate method based on an object's actual class, and demonstrates polymorphism through a simple Animal‑Dog‑Cat example with complete code and output explanations.

DispatchMethod OverridingOOP
0 likes · 3 min read
Understanding PHP Dispatch Mechanism and Method Overriding
Architecture Digest
Architecture Digest
Mar 6, 2023 · Fundamentals

The Performance Cost of Clean Code: How Following Clean‑Code Rules Can Slow Down Your Program

This article examines how strict adherence to clean‑code principles—such as using polymorphism, keeping functions tiny, and avoiding switch statements—can dramatically increase the number of CPU cycles required for simple area‑calculation loops, presenting benchmark results that show performance penalties of up to fifteen‑fold.

BenchmarkC++Polymorphism
0 likes · 20 min read
The Performance Cost of Clean Code: How Following Clean‑Code Rules Can Slow Down Your Program
Programmer DD
Programmer DD
Mar 3, 2023 · Fundamentals

Why Clean Code Can Slow Your C++ Programs by 15× – A Performance Deep Dive

An extensive performance analysis shows that strictly following clean‑code rules—such as using polymorphism, avoiding switch statements, and keeping functions tiny—can dramatically increase execution time, with measured slowdowns up to fifteen times, while alternative table‑driven or flat‑structure approaches achieve orders‑of‑magnitude speed gains.

C++Polymorphismclean code
0 likes · 24 min read
Why Clean Code Can Slow Your C++ Programs by 15× – A Performance Deep Dive
Java One
Java One
Jun 4, 2022 · Fundamentals

Understanding Java Polymorphism: Concepts, Implementation, and Common Pitfalls

This article explains Java polymorphism by illustrating inheritance hierarchies, runtime method binding, and the differences between static and dynamic dispatch, while providing concrete code examples that demonstrate how method overriding, field access, and down‑casting behave in practice.

InheritanceJavaMethod Overriding
0 likes · 6 min read
Understanding Java Polymorphism: Concepts, Implementation, and Common Pitfalls
macrozheng
macrozheng
Feb 21, 2022 · Fundamentals

When Inheritance Breaks Your Code: Why Composition Often Wins

This article critiques the over‑idealization of object‑oriented programming, explaining how inheritance can create tight coupling and hidden bugs, why encapsulation may leak state, the limits of polymorphism, and how modern stateless service architectures favor composition and functional approaches.

EncapsulationInheritanceOOP
0 likes · 13 min read
When Inheritance Breaks Your Code: Why Composition Often Wins
JD Retail Technology
JD Retail Technology
Jan 19, 2022 · Backend Development

Applying Domain-Driven Design and Polymorphic Architecture to E‑commerce Product Detail Pages

This article shares practical experience of using Domain‑Driven Design to refactor an e‑commerce product detail page, detailing domain decomposition, relationship‑network design, polymorphic logic handling, and two concrete case studies that illustrate how to support both online and offline sales scenarios with minimal impact on existing services.

Backend ArchitectureDDDDomain-Driven Design
0 likes · 13 min read
Applying Domain-Driven Design and Polymorphic Architecture to E‑commerce Product Detail Pages
Python Crawling & Data Mining
Python Crawling & Data Mining
May 18, 2021 · Fundamentals

Master Python Classes: From Basics to Advanced OOP Techniques

An in‑depth Python tutorial walks through the fundamentals of classes, covering creation, instance and class methods, protected and private members, core OOP features such as encapsulation, inheritance and polymorphism, as well as dynamic attribute handling with __slots__ and property decorators, illustrated with clear examples.

EncapsulationInheritanceOOP
0 likes · 8 min read
Master Python Classes: From Basics to Advanced OOP Techniques
21CTO
21CTO
Dec 16, 2020 · Fundamentals

How to Implement Object‑Oriented Programming in C: From Encapsulation to Polymorphism

This article explains why and how to apply object‑oriented programming concepts such as encapsulation, inheritance, and polymorphism using plain C, provides the necessary prerequisites, and walks through complete code examples—including virtual tables—to demonstrate OOP techniques without relying on C++.

C programmingEncapsulationInheritance
0 likes · 17 min read
How to Implement Object‑Oriented Programming in C: From Encapsulation to Polymorphism
macrozheng
macrozheng
Nov 27, 2020 · Fundamentals

How to Refactor Excessive if‑else Statements for Cleaner Code

Excessive if‑else statements can make code hard to maintain, but by distinguishing exception handling from state handling and applying techniques such as condition merging, early exits, removing temporary variables, and leveraging polymorphism, developers can refactor code to be clearer, shorter, and more robust.

Polymorphismcode maintainabilityif-else
0 likes · 12 min read
How to Refactor Excessive if‑else Statements for Cleaner Code
Programmer DD
Programmer DD
Sep 25, 2020 · Fundamentals

Why Your Code Is Overrun by if‑else and How to Refactor It Effectively

The article explains why developers often end up with excessive if‑else statements, outlines the drawbacks of deep nesting, and presents practical refactoring techniques—including condition merging, early exits, and polymorphism—to produce cleaner, more maintainable code.

Code RefactoringPolymorphismif-else
0 likes · 12 min read
Why Your Code Is Overrun by if‑else and How to Refactor It Effectively
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 24, 2020 · Fundamentals

Mastering Complex Business Logic: Matrix Analysis & Polymorphic Design

This article explains how to replace tangled if‑else branches in complex business code by using multidimensional matrix analysis, polymorphic extensions, and code separation, providing practical examples, design guidelines, and a step‑by‑step methodology for clearer, more maintainable software architecture.

Domain ModelingPolymorphismbusiness logic
0 likes · 16 min read
Mastering Complex Business Logic: Matrix Analysis & Polymorphic Design
Programmer DD
Programmer DD
Sep 2, 2020 · Fundamentals

When to Use Java Interfaces Instead of Abstract Classes? A Complete Guide

This article explores three common doubts about Java interfaces, demonstrates how interface references can point to implementing objects, compares abstract classes and interfaces for achieving polymorphism, and provides detailed animal‑hierarchy examples with code, generics, and best‑practice recommendations.

Abstract ClassDesign PatternsGenerics
0 likes · 19 min read
When to Use Java Interfaces Instead of Abstract Classes? A Complete Guide
macrozheng
macrozheng
Apr 26, 2020 · Backend Development

9 Proven Ways to Eliminate Excessive if‑else in Java Code

This article examines why overusing if‑else statements makes Java code hard to read and presents nine practical techniques—including early returns, maps, ternary operators, combined conditions, enums, Optional, streamlined logic, polymorphism, and switch statements—to refactor and simplify conditional logic for cleaner, more maintainable code.

Code RefactoringJavaPolymorphism
0 likes · 11 min read
9 Proven Ways to Eliminate Excessive if‑else in Java Code
Java Captain
Java Captain
Jan 21, 2020 · Backend Development

Reducing Excessive if‑else Nesting in Java Sharing Modules

This article explains why deep if‑else nesting harms code readability and maintenance, and demonstrates three practical techniques—interface layering, polymorphism, and map‑based dispatch—to refactor Java sharing logic into cleaner, more extensible structures while preserving functionality.

Code RefactoringJavaPolymorphism
0 likes · 11 min read
Reducing Excessive if‑else Nesting in Java Sharing Modules
21CTO
21CTO
Oct 9, 2019 · Fundamentals

Mastering OOP in C: Implement the State Pattern with Real Code

This article walks you through applying object‑oriented concepts in C by implementing the State design pattern, covering class simulation with structs, inheritance via macros, lifecycle management, polymorphism, and a complete client example that demonstrates state transitions for a water model.

CDesign PatternsMemory Management
0 likes · 13 min read
Mastering OOP in C: Implement the State Pattern with Real Code
Didi Tech
Didi Tech
May 9, 2019 · Fundamentals

Deep Dive into Go Interfaces: Duck Typing, Receivers, Interface Internals, and Polymorphism

The article thoroughly examines Go’s interface system, explaining static duck typing, the differences between value and pointer receivers, the internal iface/eface structures, how interfaces are constructed and converted, compiler implementation checks, type assertions, runtime polymorphism, and contrasts these mechanisms with C++ abstract‑class interfaces.

GoPolymorphismduck-typing
0 likes · 39 min read
Deep Dive into Go Interfaces: Duck Typing, Receivers, Interface Internals, and Polymorphism
Java Captain
Java Captain
Jan 23, 2019 · Backend Development

How to Reduce Excessive if-else Nesting in Java: Interface Layering, Polymorphism, and Map-based Dispatch

This article explains why deep if‑else nesting harms code readability and maintainability, and presents three practical techniques—interface layering, polymorphism, and using a Map for dispatch—to simplify Java sharing logic, reduce branches, and improve extensibility while avoiding repeated null and type checks.

Code RefactoringJavaMap Dispatch
0 likes · 11 min read
How to Reduce Excessive if-else Nesting in Java: Interface Layering, Polymorphism, and Map-based Dispatch
UC Tech Team
UC Tech Team
Oct 9, 2018 · Fundamentals

Goodbye Object‑Oriented Programming: The Collapse of Inheritance, Encapsulation, and Polymorphism

The article critiques the core pillars of object‑oriented programming—inheritance, encapsulation, and polymorphism—illustrating their practical pitfalls with real‑world analogies and code examples, and proposes containment and delegation as safer alternatives before urging a shift toward functional programming.

EncapsulationInheritancePolymorphism
0 likes · 11 min read
Goodbye Object‑Oriented Programming: The Collapse of Inheritance, Encapsulation, and Polymorphism
Java Captain
Java Captain
Apr 21, 2018 · Fundamentals

Java Type Checking, Polymorphism, Upcasting and Downcasting

This article explains Java's strong typing, type declarations, basic primitive conversions (narrowing and widening), and demonstrates upcasting, downcasting, and polymorphism through concrete class examples such as Human, Cup, and BrokenCup, highlighting how the runtime resolves method calls.

InheritanceJavaPolymorphism
0 likes · 7 min read
Java Type Checking, Polymorphism, Upcasting and Downcasting
Java Captain
Java Captain
Jan 19, 2018 · Fundamentals

Understanding Polymorphism in Java

This article explains Java polymorphism, covering its definition, dynamic binding, necessary conditions, benefits such as substitutability and extensibility, and demonstrates implementation through interfaces, inheritance, method overriding and overloading, accompanied by sample code and a quiz with expected outputs.

Dynamic BindingInheritanceMethod Overloading
0 likes · 6 min read
Understanding Polymorphism in Java