Is it a bad practice to have multiple classes in the same file?

后端 未结 15 2212
眼角桃花
眼角桃花 2020-12-08 03:48

I used to have one class for one file. For example car.cs has the class car. But as I program more classes, I would like to add them to the same file. For

15条回答
  •  一整个雨季
    2020-12-08 04:24

    The Smalltalk answer is: you should not have files (for programming). They make versioning and navigation painful.

提交回复
热议问题