As nouns,
dining compartment is a hyponym of
passenger car; that is, dining compartment is a
word with a more specific, narrower meaning than
passenger car:
passenger car: a railcar where passengers ride
dining compartment: a passenger car where food is served in transit