Skip to content

Implementing methods you do not want

A Storage interface declares read, write, delete, list and stream. A new read-only implementation must throw from three of them.

Which principle does this violate, and what follows?