MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / Boy

Class Boy

Programs/Overriding.java:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 }
7}
8class 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected