1.
class Copy {
private List<Article> articles = new ArrayList<Article>();
public addArticle(Article article) {
this.articles.add(article);
}
}
2.
Yes, you can have an addArticle
method like above. However, if you want to enforce the Copy
having all the articles initially, then you can pass a list of articles into it's constructor instead.
3.
class Copy {
public boolean canPublish() {
for (Article a: articles)
if (!article.isVerified())
return false;
}
return true;
}