开发者

How does this syntax look? [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜