Answer: B
The amine shown is dodecylamine. Repeated N-alkylation by CH3Br adds three methyl groups to give dodecyltrimethylammonium bromide, a quaternary ammonium salt (a cationic detergent). The other structures are partial methylation products or amides, which are not cationic detergents.