Sorry if the title sounds confusing, i'll try to explain...
What I have is a class (Force) which requires a string in the constructor
public Force(double mag, double ang, String f){
magnitude = mag;
angle = ang;
from = f;
}
However later I Have a function (within the same class) that returns a new Force
public Force inverse(){
return new Force(magnitude, toRads(angle+180), //String goes here );
}
The problem is, I want the name of whatever class/object which is calling that method to be put into the parameters of new constructor. Is there any way of doing this?