Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!brunix!jps From: jps@cs.brown.edu (John Shewchuk) Newsgroups: comp.lang.c++ Subject: Can you initialize private static data members? Keywords: initialization Message-ID: <11327@brunix.UUCP> Date: 26 Jul 89 20:30:41 GMT Sender: news@brunix.UUCP Reply-To: jps@cs.brown.edu (John Shewchuk) Organization: Brown Computer Science Lines: 30 Given: class X { ... public: X(char *); // The only constructor } and class Y { private: static X x; public: ... } Is there any way to initialize Y::x? The references seem to indicate that Y::x can not be initialized by saying X Y::x("Test"); because Y::x is private. Is this correct? Thanks. John Shewchuk jps@cs.brown.edu