/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aula3.alunos;
public class GerenciarAlunos {
/**
* Dois objetos - instancia de classe Aluno, aluno1, aluno2
*/
public static void main(String[]args){
Aluno aluno1 = new Aluno();
aluno1.ra = 111;
aluno1.nome = ("Oscar");
aluno1.email = ("jose@ddd.com");
Aluno aluno2 = new Aluno(112,"Maria","maria@ddd.com","mariadd","testexxx");
}
}
_________________________________________________________________________
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aula3.alunos;
/**
*
* @author clayton
*/
public class Aluno {
/**
* Atributos ou Variáveis de instancias
*/
public int ra;
public String nome;
public String email;
public String login;
public String senha;
/**
* Construtores - Responsáveis por criar objetos
*/
public Aluno(){
}
public Aluno(int ra,String nome,String email,String login, String senha){
this.ra = ra;
this.nome = nome;
this.email = email;
this.login = login;
this.senha = senha;
}
/**
* Metodos
*/
public void logar(){}
public void Matricular(){}
}
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aula3.alunos;
public class GerenciarAlunos {
/**
* Dois objetos - instancia de classe Aluno, aluno1, aluno2
*/
public static void main(String[]args){
Aluno aluno1 = new Aluno();
aluno1.ra = 111;
aluno1.nome = ("Oscar");
aluno1.email = ("jose@ddd.com");
Aluno aluno2 = new Aluno(112,"Maria","maria@ddd.com","mariadd","testexxx");
}
}
_________________________________________________________________________
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aula3.alunos;
/**
*
* @author clayton
*/
public class Aluno {
/**
* Atributos ou Variáveis de instancias
*/
public int ra;
public String nome;
public String email;
public String login;
public String senha;
/**
* Construtores - Responsáveis por criar objetos
*/
public Aluno(){
}
public Aluno(int ra,String nome,String email,String login, String senha){
this.ra = ra;
this.nome = nome;
this.email = email;
this.login = login;
this.senha = senha;
}
/**
* Metodos
*/
public void logar(){}
public void Matricular(){}
}
Nenhum comentário:
Postar um comentário