Dear Student
Carbon tetrachloride and methane are neutral molecules. Carbon has different oxidation states in both. Carbon has four electrons in their valence shell. It can lose as well as accept electrons. The oxidation state of Carbon depends on the other atoms in the compound.
Hydrogen is electropositive and it renders the carbon of methane, CH4, electron rich and it is defined as having an oxidation number of -4.
Carbon tetrachloride contains carbon in its +4 oxidation state. Carbon donates electrons to chlorine which is more electronegative. Hence, the oxidation state of Carbon is +4.
Regards