문제

I've seen both used interchangebly but do they really mean the same? From my understanding, Polymorphism stretches the fact that you could exchange an instance of a class by an instance of a subclass, and Late Binding means that when you call a method of an instance, the type decides which method (subclass/superclass) gets called.

도움이 되었습니까?

해결책

Wikipedia has a very nice article about this:

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

Summary: Late binding is a way to implement polymorphism.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top