What is polymorphism?
- Ability of an object to take multiple forms.
- Types:
- Compile-time (method overloading)
- Run-time (method overriding)
Vehicle v = new Car();
v.Start(); // Run-time polymorphism
Vehicle v = new Car();
v.Start(); // Run-time polymorphism