The problem of the public type C must be defined in its own file occurs because the defined Java class is inconsistent with the file name 1. Change the file name to the same name as the public class
2. Change the class name to the same file name
3. When a subclass inherits a parent class, it does not need to modify it with public again
Similar Posts:
- [Solved] QT Error: error: undefined reference to ‘vtable for XXX’
- How to Solve JAVA @override error
- dynamic_cast Error: source type is not polymorphic
- [How to Solve] javax.validation.ConstraintDeclarationException
- Get the time value from the database and report an error: Java sql. Timestamp cannot be cast to java. lang.Long
- Java error: No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- PHP Fatal error: Cannot redeclare class
- classes could not be found: – android.support.v7.i
- Invalid use of incomplete type struct or class solution