Các câu hỏi phỏng vấn và câu trả lời về phần "Core Java - OOPs concepts: Initial OOPs" - Phần 6: Tính đa hình (Polymorphism)
Runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time.
In this process, an overridden method is called through the reference variable of a super class. The determination of the method to be called is based on the object being referred to by the reference variable.
No.
In case of static binding type of object is determined at compile time whereas in dynamic binding type of object is determined at runtime.
Nguyễn Thị Bảo Trang
» Tin mới nhất:
» Các tin khác: