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.

Reply
 
Thread Tools Display Modes
Coding in Bluej
Old
  (#1)
anti is Offline
2nd Lieutenant
 
Posts: 3,609
Join Date: Jun 2004
   
Default Coding in Bluej - 09-16-2004, 09:01 PM

i dont know what it is but im snagged on this problem:

Exercise 2.48: add a further field, refnumber to the book class. this field can store a reference number for a library, for example. it should be a type string and initialized to the zero length string ("") in the constructor as its initial value is not passed in a parameter to the constructor. instead, define a mutator for it with the following signature:

public void setRefNumber (String ref)

the body of this method should assign the value of the paramter to the refNumber field. Add a corresponding getRefNumber accessor to help you check that the mutator works correctly.


  
Reply With Quote
Reply



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.