Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package examen.cu.mirceav2;
- public abstract class Sport {
- private String nume;
- private boolean esteSportDeEchipa;
- private int numarJucatori;
- Sport(String n, boolean ese, int nj){
- nume=n;
- esteSportDeEchipa=ese;
- numarJucatori=nj;
- }
- public String getNume() {
- return nume;
- }
- public boolean getEsteSportDeEchipa () {
- return esteSportDeEchipa;
- }
- public int getNumarJucatori() {
- return numarJucatori;
- }
- public void setNume (String nume) {
- this.nume=nume;
- }
- public void setEsteSportDeEchipa(boolean esteSportDeEchipa) {
- this.esteSportDeEchipa = esteSportDeEchipa;
- }
- public void setNumarJucatori(int numarJucatori) {
- this.numarJucatori = numarJucatori;
- }
- public abstract void startJoc();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement