Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!purdue!decwrl!argosy!becher From: becher@argosy.UUCP (Jonathan D. Becher) Newsgroups: comp.lang.smalltalk Subject: need explanation of 'super class' Keywords: super, class, meaning Message-ID: <180@argosy.UUCP> Date: 17 Jul 89 02:58:25 GMT Sender: news@argosy.UUCP Organization: we don' need no stickin' organeezation Lines: 24 Okay, I need some help. Suppose I have two classes, Building and Shack, where Shack is derived from Building. Both Building and Shack have class methods called size. Building class methodsFor: 'example' size ^10 Shack class methodsFor: 'example' size ^5 Now, from within a instance method of Shack ... Shack methodsFor: 'test' tester Transcript show: self class size. "prints 5" Transcript show: super class size. "prints 5 also" Why does the second one print 5 and not 10? Jon Becher argosy!becher@decwrl.dec.com "It's only rock 'n' roll, but I like it ..."