O'Reilly logo
  • Roberto Orsini thinks this is interesting:

  • Program to an interface, not an implementation.

Don’t declare variables to be instances of particular concrete classes. Instead, commit only to an interface defined by an abstract class.

From

Cover of Design Patterns: Elements of Reusable Object-Oriented Software

Note

Praticamente da scolpire nel marmo.