Advertisement
Guest User

Shoes 2

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