Computer scienceFundamentalsEssentialsSoftware constructionIntroduction to Design Principles and SOLID

Interface Segregation Principle

Specializations

Report a typo

We are working on a new video game and particularly on the interface SPORTSMAN. We aggregate four methods in it, but now we want to break it into the interfaces SOCCER_PLAYER and BASKETBALL_PLAYER.

Choose which methods each interface should contain.

Tip: Free throw and penalty shot should be separated. All methods should be present at least in one of the interfaces.

Choose one or more options for each row
SOCCER_PLAYERBASKETBALL_PLAYER
RUN
JUMP
MAKE_FREE_THROW
MAKE_PENALTY_SHOT
___

Create a free account to access the full topic