Are both sentences correct?Any difference in meaning?
A.1.They ride in a cable car.
2.They ride on a cable car.
B.1. They enjoy flying in a plane.
2. They enjoy flying on a plane.
With cable cars, buses, planes and ships, one walks on board, so "on" is generally used, and since those modes of transportation are chacracterized by having an enclosed space, "in" is often used to specify the interior of the cabin.
They enjoy riding in(side) the bus. (specific form)
They enjoy riding on the bus. (general form)