Electric fires can be caused by short circuits, overloading, poor insulation, or lightning. Fires are classified based on the type of fuel source - Class A for solids, Class B for liquids, Class C for gases, and Class D for metals. The right type of fire extinguisher must be used for each class of fire, such as dry chemical powder or CO2 extinguishers for electrical fires, in order to effectively put out the fire.