danimaaan

Sem regra de desconto

Apr 16th, 2021
732
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 SemDesconto extends Desconto {
  8.  
  9.     public SemDesconto() {
  10.         super(null);
  11.     }
  12.  
  13.     @Override
  14.     public BigDecimal calcular(Orcamento orcamento) {
  15.         return BigDecimal.ZERO;
  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.

×