-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pequenas modificaçoes e jogados os métodos na main(principal)
- Loading branch information
1 parent
1e2c9e9
commit 412aa16
Showing
4 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
package tp03; | ||
|
||
import java.util.Scanner; | ||
|
||
public class Usuario extends Pessoa{ | ||
|
||
private String nomeUs; | ||
private static String nomeUs = ""; | ||
|
||
public static String lerNomeUs() { | ||
System.out.println("informe o nome do usuario:"); | ||
Scanner ler = new Scanner(System.in); | ||
return nomeUs = ler.next(); | ||
|
||
} | ||
|
||
|
||
public static String getNomeUs() { | ||
return nomeUs; | ||
} | ||
|
||
public void setNomeUs(String nomeUs) { | ||
Usuario.nomeUs = nomeUs; | ||
} | ||
|
||
} | ||
|