This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 1202
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: 161

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: 20078
    
  30

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 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why doesnt this work? constructor undefined
 
It's not a secret anymore!