Asked • 04/20/19

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

I used to have one class for one file. But as I program more classes, I would like to add them to the same file. For Java, C#, PHP or any other programming language, should I try not having multiple classes in the same file or is it ok?

1 Expert Answer

By:

Inactive Tutor answered • 6d

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.