Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrajaktaSathe/Java
/ eat
Method
eat
Programs/Overriding.java:3–6 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
class
Human{
2
//Overridden method
3
public
void
eat()
4
{
5
System.out.println(
"Human is eating"
);
6
}
7
}
8
class
Boy extends Human{
9
//Overriding method
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected