Original: Such a building may be called an apartment building, especially if it consists of many apartments for rent.
Simplified: An apartment building has many apartments in it.