package jogo_de_futebol; public class Placar { int casa; int visitante; Placar(){ casa = 0; visitante = 0; } void golCasa() { casa++; this.imprime(); } void golVisitante() { visitante++; this.imprime(); } void imprime() { System.out.println("Casa: " + this.casa + " X " + this.visitante + " Visitante"); } }