If I have 2 classes - FirstClass and SecondClass. I want to pass FirstClass to SecondClass' constructor as follows:
public class SeconClass{
FirstClass fc;
public SecondClass(FirstClass fc){
this.fc = fc;
}
}
I will now have access to all of FirstClass public methods. But my question is, am I creating an instance/object of FirstClass by doing this?
GF