|
-
Nov 15th, 2003, 05:31 PM
#1
Thread Starter
PowerPoster
object attaching - different approach
this thread is similar to the other thread i posted - its not a duplicate
i wanted to start this new one as a fresh one and not to make things complicated.
so here it goes
i have made objects, found an object and wish to assign the found object (mentee) to an existing "experienced" object (mentor)
i have made a method in the Mentor Class to addMentee(Programmer aMentee)
it also has an arraylist (the Mentor class has it)
what i wanna know is how exactly do I attach a Mentor to a Mentee from the Main class where all the checking is happening (like age check, prog lang check etc...)
and also how would I make a constructor for the Mentor class if we are dealing with object passing (not object creation)
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|