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...
Type: Posts; User: bdennin
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...
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",...
This is my problem. I want the getMethod to return the overrided toString() of MyObject.
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
{
...
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......
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...