CS 70

Exercise: Constructors

Imagine that we have a class Bunny with the following constructor declarations:

Bunny();
Bunny(float floppiness);

Which of the following lines of code would cause a compiler error?

Say we have a class Dog with the following constructor declarations:

Dog() = delete;
Dog(bool isGoodDoggo);

Which of the following lines of code would NOT cause a compiler error?

(When logged in, completion status appears here.)