in my public class Person, I have this chunk of code
public void murder(Person victim, Person murderer)
{
victim.die();
victim.culprit= murderer;
}
it causes the victim (an other person) to die, and also for the now dead victim to know who the murderer was. each Person has a field culprit of type person.
my issue is that in the main method it always looks like
p1.murder(p2,p1);
note p1 is sending itself as a parameter. Is there anyways to get around this?
