42 lines
699 B
Java
Raw Normal View History

2020-09-09 15:40:29 +02:00
package TD1;
public class Admin {
private String nom;
private Forum forum;
2020-09-09 15:40:29 +02:00
public Admin() {
this(null, null);
2020-09-09 15:40:29 +02:00
}
public Admin(String n, Forum f) {
this.setNom(n);
this.setForum(f);
}
2020-09-09 15:40:29 +02:00
public void knowMembers() {
System.out.println(this.forum.getMembers().toString());
2020-09-09 15:40:29 +02:00
}
public int knowMembersCount() {
return this.forum.getMembers().size();
2020-09-09 15:40:29 +02:00
}
public Forum getForum() {
return this.forum;
2020-09-09 15:40:29 +02:00
}
public void setForum(Forum forum) {
this.forum = forum;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
2020-09-09 15:40:29 +02:00
}