You can declare the class inside the other class.I just wouldn't do that.
Keeping them separate makes for cleaner code.
Also, if you're working with someone else at any time, you can work on one module and they can work on the other.
It also helps in debugging when you only have to deal with one module at a time.