| 28 | } |
| 29 | |
| 30 | public static class Dog implements Named { |
| 31 | private final String name; |
| 32 | |
| 33 | |
| 34 | private final boolean barks; |
| 35 | |
| 36 | public Dog(String name, boolean barks) { |
| 37 | this.name = name; |
| 38 | this.barks = barks; |
| 39 | } |
| 40 | |
| 41 | public boolean isBarks() { |
| 42 | return barks; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public String getName() { |
| 47 | return name; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | public static class Cat implements Named { |
| 52 | private final String name; |
nothing calls this directly
no outgoing calls
no test coverage detected