A file can contain the code for more than one class. But only one of the classes can be public and its name must match the filename
Often the code in two classes can be merged by copying the...