5 virtual int get_foo () { return 1; }
6 int base_function_only () { return 2; }
9 class Foo : public Base
16 Foo () { foo_value = 0;}
17 Foo (int i) { foo_value = i;}
19 void set_foo (int value);
22 // Something similar to a constructor name.
25 bool operator== (const Foo &other) { return foo_value == other.foo_value; }
28 void Foo::set_foo (int value)
44 // Anonymous struct with method.
46 int get() { return 5; }
49 foo1.set_foo (42); // Set breakpoint here.
50 a.get(); // Prevent compiler from throwing 'a' away.