SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class WC2018{
  2.     public static void main(String [] args){
  3.         Player p1 = new Player();
  4.         p1.setName("Neymar");
  5.         p1.setNumber(10);
  6.         p1.setTeam("Brazil");
  7.         p1.detail();
  8.         System.out.println("---------------------------");
  9.         Player p2 = new Player("Ronaldo");
  10.         p2.setNumber(7);
  11.         p2.setTeam("Portugal");
  12.         p2.detail();
  13.         System.out.println("---------------------------");
  14.         Player p3 = new Player("Messi", 10);
  15.         p3.setTeam("Argentina");
  16.         p3.detail();
  17.         System.out.println("---------------------------");  
  18.         Player p4 = new Player("Neuer", 1, "Germany");
  19.         p4.detail();    
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top