Are there a difference between these two associations? I want to create Java Program with this.
If there is a difference between those two, What are they? Any example codes are highly appreciated.
Thanks for your time, Cheers
For example: enum Piece{GREEN, BLUE}
, and
class BoardFactory {
Board create(Piece piece) {
if(piece == Piece.GREEN) {
return new GreenBoard();
}
}
}
BoardController implements BoardUI