Path: utzoo!attcan!uunet!husc6!endor!vjm From: vjm@endor.harvard.edu (Victor Milenkovic) Newsgroups: comp.lang.c++ Subject: Re: consts in classes Keywords: const member class Message-ID: <596@husc6.harvard.edu> Date: 16 Nov 88 18:39:19 GMT References: <155@peritus.UUCP> Sender: news@husc6.harvard.edu Reply-To: vjm@endor.UUCP (Victor Milenkovic) Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 13 The question was raised whether constant class members are useful, whether they vary from instance to instance, and how they can be initialized. Constant members that vary from instance to instance exist are useful. For example your name and social security number are constants that differ from those of other instances of class "human". See page 297 (Section 10. Function Definitions) of Stroustrup's book for the appropriate initialization syntax. Victor Milenkovic Harvard University vjm@endor.harvard.edu