#include "Dog.h" #include "Puppy.h" #include #include int main(int argc, char *argv[]) { // make a puppy Puppy p = new_puppy("Fido", 2, 3); // call bark and toString function p->vtable->bark(p); char *string = p->vtable->toString(p); printf("%s\n", string); // free everything free(string); p->vtable->delete(p); return 0; }