CCP 1040     

Art. 1040.  Words "plaintiff" and "defendant" include plaintiff and defendant in an incidental action

Unless the context clearly indicates otherwise, wherever the words "plaintiff" and "defendant" are used in this Code, they respectively include a plaintiff and a defendant in an incidental demand.