Veda Bites are swipeable micro-lessons — each one teaches exactly one
idea. Here's a taste from this kit; the app has the full deck.
💡 Key Idea
What Is Polymorphism?
One name, many behaviors.
Polymorphism means "many forms" — the ability of one method or object to behave differently based on context. In Java, it's one of the four pillars of OOP, alongside encapsulation, inheritance, and abstraction.
↳ Polymorphism lets the same method name trigger different behaviors depending on context.
📖 Definition
Method Overloading Defined
Same name, different parameters.
Method overloading is compile-time polymorphism. Multiple methods share the same name but have different parameter lists — differing in count, type, or sequence.
↳ Overloading is resolved by the compiler based on method signature.
💻 Code Example
Overloading in Action
See overloading with different types.
↳ The compiler picks the right overloaded method based on arguments passed.