Interface bloat

From Wikipedia, the free encyclopedia

In software design, interface bloat (also called fat interfaces by Bjarne Stroustrup and Refused Bequests by Martin Fowler) is a term used to describe interfaces that try to incorporate all possible operations on some data into an interface, only to find that most of the objects cannot perform the given operations.

One might consider using visitor pattern, Adapter Pattern, or interface separation instead.

Interface bloat is an example of an anti-pattern.