Confusion dans les constructeurs
Salut tout le monde,
j'ai une grande confusion concernant l'utilisation des constructeurs :calim2: et j'aimerais bien que vous m'expliquer, l'utilité de l'utilisation de ces 2 constructeurs dans cet exemple :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public class Entry {
private long id;
private String title;
private String link;
private String pubDate;
private String creator;
private String description;
public Entry(long id, String title, String link, String pubDate, String creator, String description) {
super();
this.id = id;
this.title = title;
this.link = link;
this.pubDate = pubDate;
this.creator = creator;
this.description = description;
}
public Entry() {
super();
} |
Merci d'avance.