A washing machine consists of a barrel that rotates quickly in water to remove dirt from clothes using detergents. There are several types of washing machines including front loading, side loading, top loading, and stone washing machines. Front loading machines have a large glass door and controls for settings like temperature and wash cycles. Side loading machines are suited for larger laundries. Top loading machines load from above and function as a washer, rinser, and drier. Stone washing creates faded effects. Key parts include water valves, pumps, tubs, agitators, motors, timers, and drain pipes.