this is A::foo() and bar is bar from A this is B:foo() and bar is bar from B this is A::foo() and bar is bar from B this is A::foo() and bar is bar from B