Results 1 to 2 of 2
Thread: Need help with a question please
- 11-29-2007, 09:05 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 4
- Rep Power
- 0
Need help with a question please
I am currently working through a java book and would like some help in understanding the following question:-
Exercise 2.19 Suppose that the class Pet has a field called name that is of type
String. Write an assignment statement in the body of the following constructor so
that the name field will be initialized with the value of the constructor’s parameter.
public Pet(String petsName)
{
...
}
Thanks in advance, I am really keen to get my head round this and would appricate any help
- 11-29-2007, 09:17 PM #2
Similar Threads
-
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 08:49 AM -
JSP Question
By maheshkumarjava in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-29-2008, 10:51 AM -
Need help on this question
By Deon in forum New To JavaReplies: 3Last Post: 01-27-2008, 03:58 PM -
JNI question
By javaplus in forum New To JavaReplies: 0Last Post: 12-24-2007, 10:18 AM -
question about rmi
By leonard in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks