Skip to content

Commit

Permalink
modificações adicionadas as classes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiago-vivan committed Mar 21, 2021
1 parent f0f351e commit 1e2c9e9
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
10 changes: 9 additions & 1 deletion src/tp03/Convidado.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
package tp03;

public class Convidado {
import java.util.Random ; /* utilizado para randomizar se o convidado está confirmado ou não */

public class Convidado extends Pessoa {

private boolean confirmado;;
convidado1 = new pessoa;


/* classe de convidados- confirmados-nome */
}

22 changes: 22 additions & 0 deletions src/tp03/Orçamento.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package tp03;

import java.util.Scanner;

public class Orçamento {

private static float orçaTotal;
private static Gastos gastos;

public static final void lerOrç(){

Orçamento orç1 = new Orçamento();

Scanner ler = new Scanner(System.in);
System.out.println("informe o Orçamento para o evento");
orçaTotal = ler.nextFloat();
System.out.println("Saldo do Evento é = " + (orçaTotal - gastos.getGastos()));

}


}
9 changes: 8 additions & 1 deletion src/tp03/Pessoa.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

public abstract class Pessoa {

}
protected String nome;
protected int telefone;


public String getNome() {
return nome;
}
}
6 changes: 4 additions & 2 deletions src/tp03/Usuario.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tp03;

public class Usuario {

public class Usuario extends Pessoa{

private String nomeUs;

}

0 comments on commit 1e2c9e9

Please sign in to comment.