An apartment, or flat, is a self-contained housing unit (a type of residential real estate) that occupies only part of a building, generally on a single storey.