-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDog.java
More file actions
27 lines (21 loc) · 830 Bytes
/
Copy pathDog.java
File metadata and controls
27 lines (21 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
* Vestibulum commodo. Ut rhoncus gravida arcu.
*/
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
public class Dog extends Animal {
public Dog(int a) {
super(a);
}
public static void main(String[] args) {
Animal newAnimal = new Animal(4);
Collection<Animal> animalCollections = new LinkedList<Animal>();
animalCollections.add(newAnimal);
System.out.println(animalCollections);
}
}