The method name must exactly match the classname. There must not be a return type declared for the method. The Default Constructor • Is in every class • Enables you to create object instances with new Xxx() • Is invalid if you add a constructor declaration with arguments
或着自己写或则系统自动。如果用super记得一定在第一行。
There must not be a return type declared for the method.
The Default Constructor
• Is in every class
• Enables you to create object instances with new Xxx()
• Is invalid if you add a constructor declaration with arguments