Some things:
Fields:
- Fields should be private, not public.
Naming conventions:
- Why makeXyz? Setters should be named setXyz .
- For setters/constructors there is generally the common...
Type: Posts; User: andbin
Some things:
Fields:
- Fields should be private, not public.
Naming conventions:
- Why makeXyz? Setters should be named setXyz .
- For setters/constructors there is generally the common...
For the second time, I repeat: constructors cannot contain fields declarations.
Fields declarations are into a class definition but outside constructors/methods.
These are syntactically...
And if GregBrannon was not clear .....
I repeat, this is *wrong*, it's not a valid syntax. The Java language doesn't want anything like () or (String xyz, String zyx) between the class name and...
This syntax is wrong.
This is not a constructor. (a constructor has the same exact name of the class and no return type)
And apart this ... where are the instance fields of the class?