Skip to content

Commit 608ea13

Browse files
committed
Section 11 Object-Oriented Programming.
Signed-off-by: https://github.com/Someshdiwan <[email protected]>
1 parent 8b9ad4d commit 608ea13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Section11ObjectOrientedProgramming/src/Polymorphism.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ Think of a vehicle in the real world:
6767
- A Vehicle class could have a method called `move()`.
6868
- Different types of vehicles (Car, Bike, Truck) may override the `move()` method to implement how they move.
6969
- At runtime, if you have a reference to a `Vehicle` object, you might not know whether it is a `Car`, `Bike`, or
70-
`Truck`, but when you call `move()`, the correct method for the actual object type will be executed
71-
(this is dynamic polymorphism).
70+
`Truck`, but when you call `move()`, the correct method for the actual object type will be executed
71+
(this is dynamic polymorphism).
7272

7373
---
7474

0 commit comments

Comments
 (0)