Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package modelo;
  7.  
  8. public class Bola {
  9.  
  10.   private int valor;
  11.   private boolean marcado;
  12.  
  13.   public Bola(int valor) {
  14.     this.valor = valor;
  15.     this.marcado =false;
  16.   }
  17.  
  18.   public int getValor() {
  19.     return valor;
  20.   }
  21.  
  22.   public boolean isMarcado() {
  23.     return marcado;
  24.   }
  25.  
  26.   public void marcar() {
  27.     this.marcado = true;
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement