|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Frustrated java noob
I get a constructor method undefined while I have it defined.
java Code:
|
|
#2
|
||||
|
||||
|
Remove the void return type from your constructors.
I.e., public GameEntry(int new_score). Constructors do not have a return type. If you do give them a return type then they become just normal methods. Good luck
__________________
Current project: roborally |
|
#3
|
||||
|
||||
|
Also, since you've added a method to set the score, you should make that class-level variable private.
__________________
Click the image if at any point you don't like my decision.Ask the Windows Guru! |
|
#4
|
|||
|
|||
|
Thanks!!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Frustrated java noob |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|