SHARE
TWEET

Untitled

a guest May 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package examen.cu.mirceav2;
  2.  
  3. public abstract class Sport {
  4.     private String nume;
  5.     private boolean esteSportDeEchipa;
  6.     private int numarJucatori;
  7.    
  8.     Sport(String n, boolean ese, int nj){
  9.         nume=n;
  10.         esteSportDeEchipa=ese;
  11.         numarJucatori=nj;
  12.     }
  13.    
  14.  public String getNume() {
  15.      return nume;
  16.  }
  17.  public boolean getEsteSportDeEchipa () {
  18.      return esteSportDeEchipa;
  19.  }
  20.  public int getNumarJucatori() {
  21.      return numarJucatori;
  22.  }
  23.  public void setNume (String nume) {
  24.      this.nume=nume;
  25.  }
  26.  
  27. public void setEsteSportDeEchipa(boolean esteSportDeEchipa) {
  28.     this.esteSportDeEchipa = esteSportDeEchipa;
  29. }
  30.  
  31. public void setNumarJucatori(int numarJucatori) {
  32.     this.numarJucatori = numarJucatori;
  33. }
  34. public abstract void startJoc();
  35.  
  36.    
  37. }
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