How does this syntax look?
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;
}
}
Looks like it has not much use as a computer program :)
精彩评论