I've been reading through a beginning chapter on classes and I have come upon this below:
class Critter
{
public:
Critter(const string& name = ""): m_Name(name) {}
...
};
I was wondering why they wrote the constructor this way. If anyone can point me to some info, I would be very happy.