Does an abstract class without any data fields need a constructor?
Also, since the implementation of the makeAMove
function is in the derived classes, is it necessary to create a separate implementation file for this Player
class or is a this single .h file alright?
#pragma once // include guard
#include "Board.h"
class Player
{
public:
virtual void makeAMove(Board &myBoard) = 0; // pure virtual function
};