C++ Implementation of the Interface Segregation Principle

The Interface Segregation Principle (ISP) is one of the five SOLID principles of object-oriented design. It states that clients should not be forced to depend on interfaces they do not use. This means creating smaller, more specific interfaces instead of a single large, general-purpose interface.