forked from LaureStrumfeld/ProjetJava-ING3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrimestre.java
More file actions
65 lines (63 loc) · 1.55 KB
/
Trimestre.java
File metadata and controls
65 lines (63 loc) · 1.55 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
63
64
65
/*
* 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 Trimestre {
private int id_trimestre;
private int numero;
private int debut;
private int fin;
private int id_annee;
public Trimestre(){
this.id_trimestre=0;
this.numero=0;
this.debut=0;
this.fin=0;
this.id_annee=0;
}
public Trimestre(int id_trimestre, int numero, int debut, int fin,int id_annee){
this.id_trimestre=id_trimestre;
this.numero=numero;
this.debut=debut;
this.fin=fin;
this.id_annee=id_annee;
}
public void setId(int id){
this.id_trimestre=id;
}
public void setNumero(int numero){
this.numero=numero;
}
public void setDebut(int debut){
this.debut=debut;
}
public void setFin(int fin){
this.fin=fin;
}
public int getId(){
return this.id_trimestre;
}
public int getNumero(){
return this.numero;
}
public int getDebut(){
return this.debut;
}
public int getFin(){
return this.fin;
}
public int getId_annee(){
return this.id_annee;
}
public void display(){
System.out.println("L'id du trimestre est :"+id_trimestre);
System.out.println("Nous sommes le "+numero+ "e du trimestre");
System.out.println("Le debut est "+debut+ " la fin est "+fin);
}
}