Advertisement
wingman007

Java - JavaApplication27 Animal.java

Dec 7th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package javaapplication27;
  6.  
  7. /**
  8.  *
  9.  * @author fmi
  10.  */
  11. public class Animal implements AnimalInterface{
  12.    
  13.     private boolean suckMilk = false;
  14.    
  15.     public Animal(boolean suckMilk){
  16.         this.suckMilk = suckMilk;
  17.     }
  18.    
  19.     public String introduceYourSelf(){
  20.         return "I am a mummle: " + suckMilk;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement