| 6 | } |
| 7 | } |
| 8 | class Boy extends Human{ |
| 9 | //Overriding method |
| 10 | public void eat(){ |
| 11 | System.out.println("Boy is eating"); |
| 12 | } |
| 13 | public static void main( String args[]) { |
| 14 | Boy obj = new Boy(); |
| 15 | //This will call the child class version of eat() |
| 16 | obj.eat(); |
| 17 | } |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected