Anyone can explain this weird bit in this line of code to me?
ClassA::ClassA(std::string aName) : name(aName)
Appearantly, this is the declaration of that class
class ClassA
{
public:
std::string name;
ClassA(std::string aName);
};
And the weird line of code appeared in its cpp file
ClassA::ClassA(std::string aName) : name(aName)
It's not polymorphism right? But then, what is it?