Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement