Search:

Type: Posts; User: andbin

Search: Search took 0.09 seconds.

  1. Thread: Lab 14

    by andbin
    Replies
    20
    Views
    2,582

    Re: Lab 14

    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...
  2. Thread: Lab 14

    by andbin
    Replies
    20
    Views
    2,582

    Re: Lab 14

    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...
  3. Thread: Lab 14

    by andbin
    Replies
    20
    Views
    2,582

    Re: Lab 14

    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...
  4. Thread: Lab 14

    by andbin
    Replies
    20
    Views
    2,582

    Re: Lab 14

    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?
Results 1 to 4 of 4