Java coding conventions uses lowercase first letters for variables:
private MyClass someClass;
A constructor is called like a method(with ()s)
someClass = new MyClass();
Type: Posts; User: Norm
Java coding conventions uses lowercase first letters for variables:
private MyClass someClass;
A constructor is called like a method(with ()s)
someClass = new MyClass();
yes, but it is not good coding practice. It violates some OOP principles.
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.