forked from LaureStrumfeld/ProjetJava-ING3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClasse.java
More file actions
62 lines (56 loc) · 1.39 KB
/
Classe.java
File metadata and controls
62 lines (56 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* 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 modele;
/**
*
* @author Isabelle
*/
public class Classe {
private int id_classe;
private String nom_classe;
private int id_ecole;
private int id_annee;
public Classe(){
this.id_classe=0;
this.nom_classe=null;
this.id_ecole=0;
this.id_annee=0;
}
public Classe(int id_classe, String nom_classe, int id_ecole,int id_annee){
this.id_classe=id_classe;
this.nom_classe=nom_classe;
this.id_ecole=id_ecole;
this.id_annee=id_annee;
}
public void setId_classe(int id_classe){
this.id_classe= id_classe;
}
public void setNom_Classe(String nom_classe){
this.nom_classe= nom_classe;
}
public void setId_ecole(int id_ecole){
this.id_ecole= id_ecole;
}
public void setId_annee(int id_annee){
this.id_annee= id_annee;
}
public int getId_Classe(){
return this.id_classe;
}
public String getNom_Classe(){
return this.nom_classe;
}
public int getId_ecole(){
return this.id_ecole;
}
public int getId_annee(){
return this.id_annee;
}
public void display(){
System.out.println("L'id de la classe est :"+id_classe);
System.out.println("Le nom de la classe est :"+nom_classe);
}
}