solid-principles Interface Segregation Principle (ISP)


Introduction

The principle states that no client should be forced to depend on methods that it doesn't use. A client should never be forced to implement an interface that it doesn't use or client shouldn't be forced to depend on methods that they don't use.