0

Hi all,

just wonder is there any way to have a constructor parameters that having another classes with parameter?

for example like

class Player
{

public:
    Player(char = 'X', char = 'O');
};

class Board
{
public:
    Board(int, Player);
};
1
Contributor
1
Reply
3
Views
6 Years
Discussion Span
Last Post by milkypolar
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.