This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IKCV extends TemplateDeImpostoCondicional { | |
public IKCV(Imposto outroImposto) { | |
super(outroImposto); | |
} | |
public IKCV(){} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Orcamento { | |
protected double valor; | |
protected EstadoDeUmOrcamento estadoAtual; | |
public Orcamento(){ | |
this.estadoAtual = new EmAprovacao(); | |
} | |
public Orcamento(double valor){ | |
this.valor = valor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmAprovacao implements EstadoDeUmOrcamento { | |
public void aplicaDescontoExtra(Orcamento orcamento) { | |
orcamento.valor -= orcamento.valor*conceDesconto(0.05); | |
} | |
public void aprova(Orcamento orcamento) { |
OlderNewer