Lines Matching defs:Bar
28 class Bar: public Foo33 std::printf("in Bar!\n");39 Foo* foo = new Bar();40 Bar* bar;42 bar = dynamic_cast<Bar*>(foo);43 if (bar != NULL) {44 printf("OK: 'foo' is pointing to a Bar class instance.\n");46 fprintf(stderr, "KO: Could not dynamically cast 'foo' to a 'Bar*'\n");