Lesson 14 of 24 · +130 xp

Constructor

Initialize objects.

Explained simply

Your task

Write: Dog(std::string n) : name(n) {}

ctor.cpp
← Back