Alliedassault           
FAQ Calendar
Go Back   Alliedassault > Lounge > Offtopic
Reload this Page Coding in Bluej
Offtopic Any topics not related to the games we cover. Doesn't mean this is a Spam-fest. Profanity is allowed, enter at your own risk.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old
  (#8)
Judas is Offline
Senior Member
 
Posts: 8,792
Join Date: Apr 2002
Location: Hans-AlbinVonReitzenstein
 Send a message via ICQ to Judas Send a message via AIM to Judas Send a message via MSN to Judas  
Default 09-16-2004, 09:37 PM

mutator methods change values. when i learned it methods didnt have those gay names ... not sure why they are necessary.

getSomething() <- access

setSomething() <- mutate

so all its asking you to do is to redefine that method so that you can set refnumber to whatever you want ( a string in this case ) in other methods , classes, and the main method.

not sure what all the variables are in the class but

public void setRefNumber (String ref)
{
refnumber = ref;
}

public String getRefNumber()
{
return refNumber;
}
  
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.