Answer: attached to other houses in a long row in a building that is owned by a landlord housing owned by shareholders.
An apartment is a row of houses with one common entrance and a hallway. It belongs to one building wherein the rows of apartment are attached and is managed by landlords.