| 30 | } |
| 31 | |
| 32 | class ProductFactory { |
| 33 | public static Product getProduct(String className) { |
| 34 | Product p = null; |
| 35 | switch (className) { |
| 36 | case "Pencil": p = new Pencil(); break; |
| 37 | case "Note": p = new Note(); break; |
| 38 | } |
| 39 | return p; |
| 40 | } |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected