-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDiscipline.java
More file actions
42 lines (38 loc) · 1.07 KB
/
Discipline.java
File metadata and controls
42 lines (38 loc) · 1.07 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
/*
* 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 Discipline {
private int id_discipline;
private String nom_discipline;
public Discipline(){
this.id_discipline=0;
this.nom_discipline=null;
}
public Discipline(int id_discipline,String nom_discipline){
this.id_discipline=id_discipline;
this.nom_discipline=nom_discipline;
}
public void setId_discipline(int id_discipline){
this.id_discipline=id_discipline;
}
public void setNom_discipline(String nom_discipline){
this.nom_discipline=nom_discipline;
}
public int getId_discipline(){
return this.id_discipline;
}
public String getNom_discipline(){
return this.nom_discipline;
}
public void display(){
System.out.println("L'id discipline est :"+id_discipline);
System.out.println("Le nom de la discipline est :"+nom_discipline);
}
}