Fixed C++ class snippet confusing inheritance with the class name.