Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package generics;
- import java.util.List;
- public class Box<T extends Bird> {
- private List<T> birds;
- public Box(){
- }
- public List<T> getBirds() {
- return birds;
- }
- public void setBirds(List<T> birds) {
- this.birds = birds;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement