Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    1,572

    Re: Exposing lists as class properties / attributes

    Java coding conventions uses lowercase first letters for variables:

    private MyClass someClass;

    A constructor is called like a method(with ()s)

    someClass = new MyClass();
  2. Replies
    10
    Views
    1,572

    Re: Exposing lists as class properties / attributes

    yes, but it is not good coding practice. It violates some OOP principles.
  3. Replies
    10
    Views
    1,572

    Re: Exposing lists as class properties / attributes

    How about having a get method that returns a reference to the property.

    The way you have coded it looks like how defining the property as public static would work.
Results 1 to 3 of 3