Objects are created in stack area for main() but with no way to access them?
Objects are still deleted when main(){ } (or any other function they appear in) goes out of scope?
class Game
{
public:
static Game Create(); //This is a static function - not a function returning a static object.
Game(int i){int g = i;};
private:
Game();
};
You can't return a object of storage type 'static' from a function anyway. The returns from functions
are temporary objects.
You can return a copy of, or reference to, or pointer to
an object - but the actual return thing is temporary - although the object that was copied, or refereenced or pointed to may exist long after the function has completed.