Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Fubarable

Thread: Method call

  1. #1
    London is offline Member
    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Cool Method call

    How do I: add a method to the Space class named something like countScore-this should add a score to the score counter; and call this method from the Asteroid class whenever an asteroid gets hit (you may want to have different scores for splitting the asteroid and removing the last little piece). http://www.java-forums.org/images/sm...pe/(sweat).gif

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Method call

    Quote Originally Posted by London View Post
    How do I: add a method to the Space class named something like countScore-this should add a score to the score counter; and call this method from the Asteroid class whenever an asteroid gets hit (you may want to have different scores for splitting the asteroid and removing the last little piece). http://www.java-forums.org/images/sm...pe/(sweat).gif
    Nominated for the most confusing question of the day award.
    sunde887 likes this.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Method call

    It's question 67 on this list. At donanza.com you are offered $20-$30 (c== 0.40c per question!)

    @OP: It doesn't work this way. For all sorts of reasons.

    First, homework is boring. It would be nice to pretend, but more honest to accept this. So there is a natural enough reluctance for people to do your homework for you: it just isn't fun.

    Secondly, homework is important. It's your chance to practice techniques, evaluate how well you understand things and be guided towards creative solutions to problems. But the value lies in *doing* the homework, someone who provides teh codez is just robbing you of the opportunities the questions are offering.

    -----

    This forum does help people, but read some of the threads and get an idea about "help" is, as interpreted by this community. To get anywhere here you will have to ask an actual question, and you should expect explanations not solutions.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. call a JSP method
    By sauravsinha in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 09-26-2011, 04:19 PM
  2. Method call
    By ralf in forum New To Java
    Replies: 51
    Last Post: 07-17-2011, 09:59 PM
  3. How do I call this method
    By africanhacker in forum New To Java
    Replies: 1
    Last Post: 06-29-2011, 04:03 PM
  4. How to call this method?
    By Rockefella in forum New To Java
    Replies: 12
    Last Post: 01-20-2011, 04:32 PM
  5. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •