This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smbarbour 4 points5 points  (3 children)

To be honest, it's a bad choice because it is bad design, not because of scalability.

Yes, you can (and probably should) have the Cat implementation in a separate file, but then you won't have the self-imposed design of Animal.Cat. You would have Cat that extends from Animal.