Could someone present duck typing in java? I sort of understand the idea behind duck typing. If it quacks like a duck and walks like a duck, its a duck regardless of what class it is.
So how can this concept be presented in java?
Thank you!
Could someone present duck typing in java? I sort of understand the idea behind duck typing. If it quacks like a duck and walks like a duck, its a duck regardless of what class it is.
So how can this concept be presented in java?
Thank you!