the public type xxx must be defined in its own file

作为public 类应该和文件名一致 源文件中公关类名要与文件名相同。
原文地址:https://www.cnblogs.com/itmyhome/p/4131598.html