what is duck typing?
- by ashish yadav
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?