wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Why doesnt this work? constructor undefined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why doesnt this work? constructor undefined" Watch "Why doesnt this work? constructor undefined" New topic
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: 1195
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: 19674
    
  18

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why doesnt this work? constructor undefined