The Kenya Railway (KR) has had 1st Class (4 berths) and 2nd Class (6 berths) passenger cars for ages.
I rode the train in 1984. The trip was very nice, good service. I was also on the 1914 version of the KR for the filming of “Flame Trees of Thika”. Not quite as nice, but not a bad way to travel.
Obama, Sr. may have been posted to Mombasa on a government job. Kenya was still under British rule then. 1961’s trains were probably very similar (if not the identical cars) to the one we traveled on in the 1980’s.
the kenyan son of a goat herder didn't leave Hawaii until the 22nd of June, 1962. He showed up in Boston in time to commence at Harvard in September...and he didn't get a government job on his return to Kenya, he worked for an oil company.