开发者

How does this syntax look? [closed]

开发者 https://www.devze.com 2023-01-18 16:42 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reo开发者_运维技巧pened, visit the help center. Closed 12 years ago.

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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消