Home /
Expert Answers /
Computer Science /
in-c-complete-the-pounddog-code-by-adding-a-constructor-having-a-constructor-initializer-list-t-pa479
(Solved): in c++
Complete the PoundDog code by adding a constructor having a constructor initializer list t ...
in c++
Complete the PoundDog code by adding a constructor having a constructor initializer list that initializes age with 1 , id with -1, and name with "NoName". Notice that MyString's default constructor does not get called. Note: If you instead create a traditional default constructor as below, MyString's default constructor will be called, which prints output and thus causes this activity's test to fail. Try it! // A wrong solution to this PoundDog: :PoundDog() age \( =1 \); id \( =-1 \); name. SetString( "NoName"); ? // A wrong solution to this activity... \( 412744.2902946 . q \times 3 z q y 7 \)