What would be an elegant OOP design for these requirements?
"Design class structure for a building, floors and space. The space can be an apartment, a store or an office. Include any properties, fields and methods you think would be interesting to have."
I've tried this but i think it's not a good solution:
space {
floor {
}
building {
floor{
}
}
}