JavaScript Professional — Hard
Key points
- Virtual dispatch allows the Derived class method to be called instead of the Base class method.
- This behavior occurs even though the Derived class is not fully initialized yet.
- JavaScript uses dynamic dispatch to determine the correct method to call at runtime.
Ready to go further?
Related questions
