It is a comedy based around a situation. In your example the characters are the owners and workers at a hotel, each episode has most of the characters (and maybe one or two tempory ones) and there is some kind of weak story that is the platform for various jokes etc. The other sort of TV comedy is a "sketch" maybe half an hour of totally unconnected scenes each is a seperate joke.