Reborn Anew
Which of the following accurately describes the underlying code snippet?
class Base {
public:
virtual Base* clone() const { return new Base(*this); }
};
class Derived : public Base {
public:
Derived* clone() const override { return new Derived(*this); }
};
Sign in to answer questions and track your progress
Sign In