# Type Switching

> Branching on an object's concrete type instead of dispatching through a shared polymorphic interface.

Record: `lex:type-switching`
Kind: anti-pattern
Layer: [Structural Core](https://banes-lab.com/records/layer/structural-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lex-type-switching

## category

- [SOLID / Object-Oriented Design](https://banes-lab.com/records/lex-category/solid-object-oriented-design.md)

## referenced-by

- [Polymorphism](https://banes-lab.com/records/arch/polymorphism.md)
