Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: Simple C++ Question Message-ID: <353@taumet.com> Date: 27 Jul 90 16:57:15 GMT References: <155@srchtec.UUCP> <45882@brunix.UUCP> <156@srchtec.UUCP> Distribution: usa Organization: Taumetric Corporation, San Diego Lines: 20 johnb@srchtec.UUCP (John Baldwin) writes: >static class Widget { > static int several_data_items; // all static > static void several_memb_funcs(); // once again, all static > } widg_inst; The static refers to widg_inst, exactly as in ordinary C. There is no such thing as a static class, only static objects. You could also write this as class Widget { ... }; static Widget widg_inst; and it would mean exactly the same thing -- just like ordinary C. -- Steve Clamage, TauMetric Corp, steve@taumet.com