danimaaan

Calculadora de descontos

Apr 16th, 2021
770
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package br.com.alura.desconto;
  2.  
  3. import java.math.BigDecimal;
  4.  
  5. import br.com.alura.orcamento.Orcamento;
  6.  
  7. public class CalculadoraDescontos {
  8.    
  9.     public BigDecimal calcular(Orcamento orcamento) {
  10.         Desconto desconto = new DescontoParaOrcamentoComMaisDeCincoItens(
  11.                 new DescontoValorAcimaQuinhetos(
  12.                         new SemDesconto()));
  13.        
  14.         return desconto.calcular(orcamento);
  15.        
  16.     }
  17.  
  18. }
  19.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×