Search code examples
smalltalkmetaclasssuperclass

Smalltalk superclass vs metaclass?


I new to OOP, but with a "procedural" background.

I'm currently trying to get my head around OOP via GNU Smalltalk and Lovejoy's "Smalltalk: Getting The Message".

I'm confused as to the the heck the metaclass and Metaclass class are, vs superclass. I can see the inheritance flow of superclass -> class -> subclass; but I don't see how/where metaclass fits in. TIA...


Solution

  • There is an excellent description in the free online book Pharo by Example, Chapter 10 (The Pharo object model). The things explained in this chapter are common to all Smalltalk implementations.