if I wanted to do something like this, how would it work? Both syntactically and within the program.
Please and thank you
public class A{
public A(B something){
// what would go here to pass a preexisting item
// 'something' of class 'B' into the 'A' class?
}
private B myBobject;
}
Could using
myBobject = something;
work without causing possible issues?
what would be the most stable way to do this?
Thanks again to anyone who helps. I'm mostly frustrated because I can do this in c++ by passing a reference. I'm just now learning java and it's confusing in its similarities and differences. I try not to compare the two but its so hard.

New Topic/Question
Reply




MultiQuote








|