Tagged articles

method overriding

19 articles · Page 1 of 1
Lisa Notes
Lisa Notes
Jun 21, 2026 · Fundamentals

How to Use Java’s super Keyword to Access Base-Class Members

This tutorial demonstrates how the super keyword lets a subclass invoke overridden methods and access shadowed fields in its superclass, providing step‑by‑step Java code examples, execution results, and explanations of the underlying inheritance mechanics.

Javafield shadowinginheritance
0 likes · 5 min read
How to Use Java’s super Keyword to Access Base-Class Members
Lisa Notes
Lisa Notes
Apr 24, 2026 · Fundamentals

Java Inheritance from Scratch: Stage‑2 AI Learning Notes

This note explains Java inheritance, covering the single‑inheritance class hierarchy, a Car class example, a ChildCar subclass that adds a load field, and eight key inheritance capabilities such as member reuse, method overriding, and constructor chaining, illustrating why inheritance improves code reuse and quality.

Class HierarchyJavaObject-Oriented Programming
0 likes · 7 min read
Java Inheritance from Scratch: Stage‑2 AI Learning Notes
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 OverloadingOOP
0 likes · 5 min read
Overloads vs Overrides in Java: When and How They Differ
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 PatternsInterfacesOOP
0 likes · 9 min read
Understanding Polymorphism in PHP: Types, Code Examples, and Practical Applications
21CTO
21CTO
Apr 21, 2025 · Backend Development

Master PHP Inheritance: Single, Multi‑Level, and Hierarchical Explained

This tutorial explains PHP inheritance concepts—including single, multi‑level, and hierarchical inheritance—showing how to reuse and extend code with practical examples of method overriding, the parent keyword, constructors, interfaces, and access modifiers.

Backend DevelopmentObject-Oriented Programminginheritance
0 likes · 10 min read
Master PHP Inheritance: Single, Multi‑Level, and Hierarchical Explained
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 OverloadingObject-Oriented Programming
0 likes · 9 min read
Mastering Polymorphism: 10 Real-World Python Examples and When to Use Them
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.

DispatchOOPPHP
0 likes · 3 min read
Understanding PHP Dispatch Mechanism and Method Overriding
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.

JavaOOPRuntime Binding
0 likes · 6 min read
Understanding Java Polymorphism: Concepts, Implementation, and Common Pitfalls
php Courses
php Courses
Mar 9, 2021 · Backend Development

Understanding Method and Property Overriding in PHP Classes

The article explains PHP class inheritance, detailing how public and protected properties and methods can be overridden in child classes while private members remain unaffected, and demonstrates correct overriding practices, parameter matching, and using the parent keyword with clear code examples.

PHPbackendmethod overriding
0 likes · 6 min read
Understanding Method and Property Overriding in PHP Classes