Fires are classified based on their fuel into Class A, B, and D. Class A fires involve solid organic materials like wood and paper. Class B fires involve flammable liquids. Different types of extinguishers like water, dry chemical powder, foam, and carbon dioxide can effectively extinguish different fire classes. Foam extinguishers use water and foam to blanket burning liquids and exclude oxygen, preventing further vapor formation.