(a) It shall be unlawful for any person, while an occupant of a hotel, rooming house, tourist court or other commercial establishment in which room accommodations are furnished for hire, to smoke any cigarette, cigar, pipe or other device used for the burning of tobacco or other substance, while such person is in bed. (b) Every operator of a hotel, rooming house, tourist court or other commercial establishment in which rooming accommodations are furnished for hire shall post in a prominent place, in each room let for hire a copy of this section, and cause such notice to be so posted continuously.