| Author |
Why doesnt this work? constructor undefined
|
jimmy dean
Greenhorn
Joined: Oct 14, 2010
Posts: 3
|
|
line: 5]
Error: The constructor Stock1(java.lang.String, java.lang.String, double, double) is undefined
|
 |
Carol Murphy
village idiot
Bartender
Joined: Mar 15, 2001
Posts: 1172
|
|
|
What would happen if you changed the name of your Stock1 class that defined the constructors to something else, and then created that object in main in your Stock1 class?
|
 |
Gary Ba
Ranch Hand
Joined: Oct 23, 2009
Posts: 150
|
|
Carol, Double posting.
Gary
|
star chaser..
|
 |
Raphael Okochu
Greenhorn
Joined: Jul 17, 2009
Posts: 22
|
|
More like this;
|
SCJP 5
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
Gary Ba wrote:Carol, Double posting.
Gary
Indeed.
Jimmy, please UseOneThreadPerQuestion. This thread is the same as this one. I'll close the other one, but do read Matthew's post in it.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Why doesnt this work? constructor undefined
|
|
|