这种语法看起来如何?
class Priorities {
//Declaring the collective
$private family;
$private friends;
$protected vocation;
//Starters
private function __construct() {
define("CONSTANT", "Jesus Christ");
define("CONSTANT", "Some World");
}
private function setMyTrunk() {
return $this->family + $this->friends;
}
protected function setGiveBack($empathy) {
$this->vocation = $this->senseOfPurpose() * $empathy;
}
public function senseOfPurpose() {
define("PEOPLE", "Us all together");
return PEOPLE;
}
}
答案 0 :(得分:0)
看起来它没有太多用作计算机程序:)