Which constructor are we supposed to look at?
And what is the problem you're having?
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
I get the following linker errors:
1 2 3
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Animal::~Animal(void)" (??1Animal@@QAE@XZ) referenced in function __unwindfunclet$??0Dog@@QAE@HHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z$0
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Animal::Animal(int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Animal@@QAE@HHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Dog::Dog(int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Dog@@QAE@HHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Animal::Animal(void)" (??0Animal@@QAE@XZ) referenced in function _main
1 - You never implemented your Animal destructor.
2 - You never implemented you explicit Animal constructor.
3 - You never implemented you Animal default constructor.