coming from Java I'm a bit confused about calling the base class constructor (or super()
).
I have 2 classes: Player (abstract class), and HumanPlayer which is a child of Player.
now, i have a constructor for Player with the declaration:
Player(string name, list<Point> points);
and now im trying to implement something of this sort:
HumanPlayer() {
string name = get name from user...
list<Point> points = get points from user...
...
...
...
super(name, points);
}
really new to c++, having a hard time with it's syntax. regards,