2010-10-02 76 views
-1

這個語法是怎麼看的?這個語法是怎麼看的?

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; 
} 

}

+1

的語法看起來像PHP沒有太大的用處。問題是什麼? – kennytm 2010-10-02 07:06:31

+0

像PHP一樣。奇怪的使用常量。也許更具體? – 2010-10-02 07:06:31

+1

這是不正確的語法 – Sarfraz 2010-10-02 07:08:20

回答