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