hi, there's something that's been bothering me for some time and im not too sure if there is another way to pass a class's field as a default argument like this :
let's say I have a class known as "Body"
class Body{
private $myHair = "brown";
function getHead($defaultHair = $this->myHair){
...
}
}
How can i actually pass Body's own "myHair" field into getHead function as a default value incase user leaves out blank by calling getHead(); ?😕