Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21
    globo is offline Member
    Join Date
    Sep 2010
    Rep Power

  2. #22
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Pune, India
    Rep Power


    Just for you info, when you create a class and don't mention any constructors, the compiler creates a default constructor for you.

    Something like,

    Java Code:
    Access_modifier Classname(){ }
    //which in you case is,
    public Building() { }

    But, when you mention any custom constructors with various parameters, the compiler doesn't do that favor to you. So whenever you have custom constructors and you still need to use the default one, then you would have to write it on your own.

    Hope that makes some sense,

    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Cannot find symbol
    By Johanis in forum New To Java
    Replies: 19
    Last Post: 11-04-2010, 09:13 PM
  2. Still cannot find symbol!
    By Johanis in forum New To Java
    Replies: 1
    Last Post: 11-04-2010, 05:32 PM
  3. cannot find symbol
    By GabWit in forum New To Java
    Replies: 3
    Last Post: 01-25-2009, 01:13 AM
  4. Replies: 9
    Last Post: 10-18-2008, 09:26 PM
  5. Replies: 3
    Last Post: 05-01-2008, 09:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts