0
這是實現的類圖,但代碼中的一對多關係是什麼樣的?
這是一個文本,請計算器接受我的問題
class Customer {
public $name;
public $location;
public function sendOrder(){
//method here
}
public function receiveOrder(){
//method here
}
}
class Order {
public $date;
public $number;
public function sendOrder(){
//method here
}
public function receiveOrder(){
//method here
}
}
class SpecialOrder Extends Order{
public function dispatch(){
//method here
}
}
class NormalOrder Extends Order{
public function dispatch(){
//method here
}
public function receive(){
//method here
}
}