Ok... I want to use Object F in my new class defition. Is it okay/will it work to create a constructor with Object F (having no commands or expressions inside the constructor) so that I can have Object F available to methods declared in the new class? Might have to read that again... Here's a little more illustrative approach:
I'm willing to help u out in your problem, but I found a little difficult in reading your explanation on your problem... Could u please explain it more clearly so that I can help you to solve your problem....
I don't know exactly what to say... Having a constructor, (with objects that I want "imported" so I can use them in the other methods of the class), that has no expressions or anything inside of it; it's sole existance is to "import" some other object.. I'm pretty sure it'll work, (I mean I could just skip this, and take the object as a parameter for each and every method, but that seems a little wasteful).
Hi Robbie, It sounds like what you're trying to figure out is how to innitialize a member variable in a constructor, something like
Here the constructor parameter "theName" is made available to all the methods of the class by storing its value in the member variable "name". Make sense? [ December 17, 2003: Message edited by: Ernest Friedman-Hill ]