Advertisement
wingman007

Java2014_Cat

Dec 15th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. package animals;
  8.  
  9. /**
  10.  *
  11.  * @author fmi
  12.  */
  13. public class Cat extends Animal{
  14.  
  15.     // @Override
  16.     public void makeNoise() {
  17.         System.out.println("Meoow");    
  18.     }
  19.    
  20.     public void doOnlyForCat() {
  21.         System.out.println("Only for cat");
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement