Results 21 to 22 of 22
Thread: can't find symbol
- 01-16-2011, 11:15 PM #21
Member
- Join Date
- Sep 2010
- Posts
- 61
- Rep Power
- 0
- 01-17-2011, 04:06 AM #22
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,
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
Similar Threads
-
Cannot find symbol
By Johanis in forum New To JavaReplies: 19Last Post: 11-04-2010, 08:13 PM -
Still cannot find symbol!
By Johanis in forum New To JavaReplies: 1Last Post: 11-04-2010, 04:32 PM -
cannot find symbol
By GabWit in forum New To JavaReplies: 3Last Post: 01-25-2009, 12:13 AM -
cannot find symbol symbol :constructor Error. Please help! =(
By KalEl in forum New To JavaReplies: 9Last Post: 10-18-2008, 08:26 PM -
cannot find symbol symbol : class Item location: package platypos.services.order
By officialhopsof in forum New To JavaReplies: 3Last Post: 05-01-2008, 08:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks