Search:

Type: Posts; User: bdennin

Search: Search took 0.09 seconds.

  1. Re: I need to retreive data from my constructor that does not have its own variable

    Basically nothing, except googling for hours with no result. I have no idea how to access the object without using inheritance, or setting another variable like private MyObject x; and then defining...
  2. Re: I need to retreive data from my constructor that does not have its own variable

    MyObject is a parameter of MyComposition. I didn't write the toString() method in this mock code, but it would look something like

    public String toString
    {
    return String.format( "%d, %d",...
  3. Re: I need to retreive data from my constructor that does not have its own variable

    Error
  4. Re: I need to retreive data from my constructor that does not have its own variable

    This is my problem. I want the getMethod to return the overrided toString() of MyObject.
  5. Re: I need to retreive data from my constructor that does not have its own variable

    Okay. Check it. I want the getMyObject() method to work without adding any new fields. I can do anything as long as it doesn't implement a new field.



    public class MyObject
    {
    ...
  6. Re: I need to retreive data from my constructor that does not have its own variable

    help
  7. Re: I need to retreive data from my constructor that does not have its own variable

    I want to get the input parameter ( my object which HAS A relationship ) by calling a get method.

    It's an assignment.

    I realize it would be incredibly easy to just define some variable......
  8. I need to retreive data from my constructor that does not have its own variable

    I created a new object, and it is a parameter for a new constuctor. I can't define a value in the new constructors class for it to have a spot to save the information to, and for me to thus easily...
Results 1 to 8 of 8