A capacitor is a device that stores electrical energy in an electric field. It is a passive electronic component with two terminals. Unlike a resistor, an ideal capacitor does not dissipate energy, although real-life capacitors do dissipate a small amount. This capacitor's attributes include: