what is duck typing?

Posted by ashish yadav on Stack Overflow See other posts from Stack Overflow or by ashish yadav
Published on 2010-03-18T14:12:08Z Indexed on 2010/03/18 14:41 UTC
Read the original article Hit count: 488

Filed under:
|

I recently read an article about duck-typing.It said about calling functions of different classes using object of any class. Is it true?And how will the compiler do it on runtime? I apologize if i am not clear.But it really fascinates me , if we could do it dynamically. So if u people got any idea.I am all ears. thank you!!

how will the function be accessed by object of any other class. that violates the basic principle of OOP.and that too dynamically during runtime. And is this feature possible in case of OOP languages?

© Stack Overflow or respective owner

Related posts about terminology

Related posts about duck-typing