gt phantichvathietkehethongthongtin19
DESCRIPTION
egwegTRANSCRIPT
CHƯƠNG 1. CƠ SỞ CỦA PHÁT TRIỂN PHẦN MỀM HƯỚNG ĐỐI TƯỢNG
11
Hình 1.2: Quan hệ kết hợp
Cài đặt:
package relation;
public class Order {
private relation.Customer customer;
private OrderLine[] orderLine;
private Currency total;
public OrderLine addLine() {
throw new UnsupportedOperationException();
}
public void removeLine() {
throw new UnsupportedOperationException();
}
}
package relation;
import java.util.Vector;
import aggregation.Order;
public class OrderList {
Vector<Order> order = new Vector<Order>();
public void add() {
throw new UnsupportedOperationException();
}
public int getCount() {
throw new UnsupportedOperationException();
}
public OrderIterator getIterator() {
throw new UnsupportedOperationException();
}
public void remove() {
throw new UnsupportedOperationException();
}
}
PTIT