Please, share your code. Also, your question is tagged with both Java and C language, so which one are you talking about? (I suspect Java.)
For Java, every class has to go to its own file with the same name as the class itself. E.g., Employee.java would hold the Employee class.