#include <iostream> class Foo { public: Foo() { std::cout << "foo" << std::endl; } virtual ~Foo() { } }; class Bar : public Foo { public: Bar(int i) { std::cout << "bar" << std::endl; } ~Bar() { } }; int main(int argc, const char *argv[]) { Bar bar(1); return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |