Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package invoice;
- public class InvoiceTest {
- public static void main(String[] args) {
- Invoice fatura = new Invoice("001", "Samsung Galaxy A7 2018", 0 , 1799);
- // Retorna a descricao do Objeto
- System.out.println(fatura.getDescricao());
- //Retorna o numero do objeto
- System.out.println(fatura.getNumero());
- //Retorna o total da fatura
- System.out.println("Total da fatura:" + fatura.getInvoiceAmount());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement