SHARE
TWEET

Untitled

a guest Sep 16th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AnimalTest {
  2.  
  3.     public static void main(String[] args) {
  4.        
  5.         Animal animal1 = new Animal();
  6.         animal1.speak(2.0, 3);
  7.        
  8.         Elephant elephant1 = new Elephant();
  9.                
  10.         elephant1.speak(800, 4, "小飛象");
  11.     }
  12.  
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top