$C_m = \large\frac{\Delta Q}{n\Delta T}$, $C_m$ is the molar heat capacity.

$\Rightarrow C_m = \large\frac{M \Delta Q}{n \Delta T}$$ = M\;C$, where $C$ is the specific heat capacity.

Also, $C_m$ depends on the degrees of freedom (at constant volume) and nature of process.