john2054

Shoes

Sep 21st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. public class Shoes {
  2.     void speak (String msg) {
  3.    
  4.     }
  5.     public String goodShoes() {
  6.         return "I really like your shoes!";
  7.     }
  8.   public String badShoes() {
  9.       return "What are THOSE?";
  10.   }
  11.  
  12.   public static void main(String[] args) {
  13.       Shoes shoes = new Shoes();
  14.       String goodShoes = shoes.goodShoes();
  15.       String badShoes = shoes.badShoes();
  16.    
  17.       System.out.println(goodShoes);
  18.       System.out.println(badShoes);
  19.   }
  20.  
  21. }
Add Comment
Please, Sign In to add comment