Tagged articles
Method Overloading
14 articles · Page 1 of 1
This article explains Java's two polymorphism mechanisms—static overload and dynamic override—detailing definitions, compiler rules, valid code examples, a side‑by‑side comparison table, and frequent pitfalls such as static method hiding, access‑modifier changes, and exception widening.
@OverrideJavaMethod Overloading
0 likes · 10 min read

This tutorial walks through Java class fundamentals, covering class declarations, modifiers, member variables, methods, method overloading, and constructors with clear syntax examples and code snippets to help beginners write and understand Java classes.
JavaMethod OverloadingModifiers
0 likes · 8 min read

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

This article explains Python's method overriding and how to use the super() function to extend parent behavior, then shows how to simulate method overloading with the multipledispatch library and @dispatch decorator, providing clear code examples and a concise comparison of the two concepts.
Method OverloadingOOPmethod overriding
0 likes · 6 min read

This article explains the clever trick of making a single object satisfy multiple equality checks in JavaScript using a mutable valueOf method, and shows how a similar effect can be achieved in Java through custom methods and state variables, highlighting the underlying mechanism.
JavaScriptMethod OverloadingObject Comparison
0 likes · 6 min read

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.
Method OverloadingPolymorphismPython
0 likes · 9 min read

This article explains the concept of polymorphism in computer science, analyzes a non‑polymorphic PHP product class, demonstrates how inheritance and method overriding create a flexible, extensible design, and also covers static polymorphism via method overloading with illustrative code examples.
InheritanceMethod OverloadingOOP
0 likes · 8 min read

This article explains the inner workings of Java's System.out.println() method, covering the System and out components, the PrintStream class, method overloading, and example code demonstrating how different argument types affect output, thereby illustrating core object‑oriented programming concepts.
JavaMethod OverloadingOOP
0 likes · 5 min read

This article explains Java constructors, the importance of providing a no‑arg constructor, method overloading rules and type promotion, the use of the this and static keywords, memory cleanup strategies, garbage‑collector algorithms, JIT compilation, member initialization order, and enum usage with clear code examples.
Method Overloadingconstructorsgarbage collection
0 likes · 15 min read

This article explains the special nature of Java's main method, its modifiers, how it can be overloaded, invoked from other methods, and even inherited by subclasses, illustrating each point with clear code examples.
InheritanceMethod Overloadingmain method
0 likes · 6 min read

This article explains why Java reflection may invoke the wrong overloaded method, how generic type erasure creates bridge methods that cause duplicate calls, and provides practical fixes such as using getDeclaredMethod, filtering bridge methods, and applying @Override to ensure correct method overriding.
@OverrideBridge MethodGenerics
0 likes · 7 min read

This article explains how Java objects are initialized using explicit values, default values, and constructors, describes the characteristics and purpose of constructors, demonstrates their syntax with code examples, and introduces method overloading with practical illustrations.
InitializationJavaMethod Overloading
0 likes · 7 min read

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

This article explains key Java concepts such as compile‑time constant folding, the distinction between compile‑time and runtime calculations, method overloading versus overriding, generics type erasure, annotations, exception handling, and aspect‑oriented programming, while illustrating each topic with clear code examples.
AOPGenericsJava
0 likes · 12 min read
