What does "compartment" mean? Does it have the same meaning as a "locker" or a "cabinet"?

Native speaker’s answer
Rebecca
A compartment is a separate section or part of a structure or container, and it's used to separate things. It's more similar in meaning to "section," "part," or "partition" than it is to "locker" or "cabinet. Ex: Most fridges have a freezer compartment. Ex: This storage container has many compartments, so you can store and separate many things.