Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
상속1
//Title of this code //'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_45 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Animal ani = new Animal(); ani.Cry(); System.out.println("Hello, World!"); } } class Animal{ public void Cry(){ System.out.println("Grr~"); } } class Dog extends Animal{ @Override public void Cry(){ System.out.println("wal~wal~"); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
detect cycle in singly linked list
Sum of ODD and EVEN numbers in an array
2.C
Has A
Ip address
else weird
상속1
Reverse string template
Aaina
2D List Iterator
Please log in to post a comment.