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
class AlunoDeComputacao extends Aluno implements Programar{ | |
private String linguagemFavorita; | |
public AlunoDeComputacao(String nome, String linguagemFavorita) { | |
super(nome); | |
this.linguagemFavorita = linguagemFavorita; | |
} | |
@Override | |
public void estudar(){ |
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
public class Pessoa { | |
private String nome; | |
private String cpf; | |
private int idade; | |
public Pessoa(String nome, String cpf, int idade) { | |
this.nome = nome; | |
this.cpf = cpf; | |
this.idade = idade; | |
} |