5 Replies Latest reply on Jan 10, 2008 1:53 PM by 807603

    How do you call the constructor?

    807603
      I must be losing my mind, this seems so simple.

      I've got a class aaa.java with a constructor as follows:

      public void aaa()
      {
      System.out.println("hello");
      }

      And then in my main class I call as follows:

      aaa bbb = new aaa();

      Should this call the constructor of the aaa() class and run the println statement? I must be missing something stupid. It's running through fine, just not hitting the constructor.