Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesnews 0.1 (unido 12/05/84); site unido.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!tub!axel From: axel@tub.UUCP Newsgroups: net.lang Subject: C++ Message-ID: <21500001@tub.UUCP> Date: Fri, 3-Jan-86 17:54:00 EST Article-I.D.: tub.21500001 Posted: Fri Jan 3 17:54:00 1986 Date-Received: Fri, 10-Jan-86 06:56:38 EST Sender: notes@unido.UUCP Lines: 22 Nf-ID: #N:tub:21500001:000:807 Nf-From: tub!axel Jan 3 22:54:00 1986 Subject: C++: statics in classes == classvariables ? I am currently writing a paper about the concept of inheritance used in object oriented programming languages. I have a question about the C++ mechanism for static members of a class. Chapter 8.5.1 of the C++ Reference Manual states: "...There is only one copy of a static member shared by all objects of the class in the program. ..." What about derived classes and a static member of a base class. Is only one copy of this static member shared by all objects of the base class and its derived classes? (This would be like the concept of class variables in Smalltalk or Loops) I would appreciate comments and answers ! Thanx a lot Axel e-mail: ...!mcvax!unido!tub!axel.UUCP mail: Axel Kramer, Schiller Str. 27, 1000 Berlin 12, W.Germany