Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
extends
class animal { void eat() { System.out.println("eating..."); } } class dog extends animal { void bark() { System.out.println("barking..."); } } class babydog extends dog { void weep() { System.out.println("weeping..."); } } class Rextester { public static void main(String args[]) { babydog d=new babydog(); d.weep(); d.bark(); d.eat(); } }
run
|
edit
|
history
|
help
0
or You Over the hill
document
jb6.13 varargs
Problem: Single_digit
상속1
Tree ZigZag Traversal
jb14 isEven Links
http://stackoverflow.com/questions/23175927/how-to-clone-object-defined-by-interface
hello!
Java messing around