13 lines
830 B
Markdown
13 lines
830 B
Markdown
|
# Do you want any of your classes to act as a container for objects of the other classes?
|
||
|
I will use Configuration as a container for the Board and a vector of Pieces.
|
||
|
|
||
|
# For which of the classes would you write aconstructor (or multiple constructors)?
|
||
|
I will write a constructor for the Configuration class to set up the whole board.
|
||
|
The Piece class will have a constructor to make it easier to create. The queen inherits its constructor from Piece.
|
||
|
The Board class does not need a constructor as i am only creating it once.
|
||
|
|
||
|
# A destructor?
|
||
|
I will write a destructor for the configuration class because it holds a pointer to a Board object.
|
||
|
|
||
|
# A copy constructor and copy assignment operator?
|
||
|
I will write a copy constructor and copy assignment operator for the Configuration class because it holds a pointer to a Board object.
|