1/15
Looks like no tags are added yet.
Polymorphism
"Many forms" — same message → different behavior depending on object type
Static Binding
Method call resolved at compile time — uses fixed code (procedural style)
Dynamic Binding
Method call resolved at run time — based on actual object type
Upcasting
Assigning a subclass object to a superclass reference variable
Method Overloading
Same method name, different parameter lists — happens within one class
Method Overriding
Same method signature in subclass — different implementation
Modularity
Organizing code into independent, reusable units (methods → classes → packages)
Encapsulation
Bundling data + methods together; hiding internal details from outside access
static keyword
Makes a field/method belong to the class, not to individual objects — shared across all instances
Packages
Named collection of related classes; prevents naming conflicts; convention = reverse domain name
private
Only within the same class
(default / friendly)
Within the same package only
protected
Same package + subclasses in any package
public
Everywhere — no restriction
Bundling
Keep related data and methods together in one class
Information Hiding
Make data private; control access through public getter/setter methods