Skip to content

Glossary: Software Design Patterns in Java

Duck typing

Using any object that has the right methods, whatever its class. Java checks this with interfaces instead.

Where the book teaches it

Related terms

Interface