This is the class diagram implemented, but what would a 1-to-many relationship look like in code?
This is a text please stackoverflow accept my question
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
}
}