Advertisement
LeonardoGB

Exercicio 3.12 Test

Mar 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package invoice;
  2.  
  3. public class InvoiceTest {
  4.     public static void main(String[] args) {
  5.         Invoice fatura = new Invoice("001", "Samsung Galaxy A7 2018", 0 , 1799);
  6.        
  7.         // Retorna a descricao do Objeto
  8.         System.out.println(fatura.getDescricao());
  9.        
  10.         //Retorna o numero do objeto
  11.         System.out.println(fatura.getNumero());
  12.        
  13.         //Retorna o total da fatura
  14.         System.out.println("Total da fatura:" + fatura.getInvoiceAmount());
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement