public:
Foo();
~Foo();
private:
Bar b(0, 0); // this is a constructor for the class Bar.
};
However if Bar doesn't have a constructor that takes parameters, this works fine.
I know we can use pointers, but any other way? "I really like the dot operator"