Results 1 to 4 of 4
Thread: Method call
- 09-15-2011, 01:18 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 1
- Rep Power
- 0
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
-
Re: Method call
- 09-15-2011, 02:42 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
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.
- 09-15-2011, 09:02 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: Method call
If you have done something so far, show it here. So all others could comment on it. No one wants to do your homework at all.
Similar Threads
-
call a JSP method
By sauravsinha in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 09-26-2011, 04:19 PM -
Method call
By ralf in forum New To JavaReplies: 51Last Post: 07-17-2011, 09:59 PM -
How do I call this method
By africanhacker in forum New To JavaReplies: 1Last Post: 06-29-2011, 04:03 PM -
How to call this method?
By Rockefella in forum New To JavaReplies: 12Last Post: 01-20-2011, 04:32 PM -
cannot call private method from static method
By jon80 in forum New To JavaReplies: 3Last Post: 05-07-2008, 08:37 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks