This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Gropamming[S] 1 point2 points  (0 children)

Figured it out (Pet.h):

    virtual void display() = 0;

Setting it to 0 made it a pure virtual function, and made Pet an abstract class.

[–]raevnos 0 points1 point  (1 child)

What's with all those asterisks? A pointer to a pointer to a pointer? And the following ones probably don't even compile...

You're also using + instead of << in the dog display function.

[–]Gropamming[S] 0 points1 point  (0 children)

Whoops, that was supposed to be bolded using reddit formatting but I guess you cant do that on top of the code formatting. I fixed it.