# Wildcards in Parameters
- <?> - unknown type
- <? extends Customer> - any type that extends Customer
- <? super Customer> - any type that's super class of Customer
private static void processData(ArrayList<? extends Customer> customers) {
for (Customer c : customers) {
c.doSomething();
}
}
댓글 영역