This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed with solving a problem in my constructor

 
Marques Johnston
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day all, i am using java greenfoot for the first time to create a canyon bomber/ bomber plane type of game, anyway, i am having a problem with a constructor, could anyone help me,please?
thank you,

here's my code:


oh and when i try to compile this, an error says: invalid method declaration; return type required
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> an error says: invalid method declaration; return type required

what's the class name?
 
Stephen Blythe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,

there are more appropriate places than this to get help. You were warned, and now you've been caught.

-Dr. Blythe
 
Michael Dunn
Ranch Hand
Posts: 4632
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic