Objective C - Classes
- Inheritance
- Protocols
- Categories
- Cannot have "class variables" (kludge: static var. with class getter/setter)
-
Heirarchy
- None built into the language proper (no "inherit from Object by default" behavior)
- Most frameworks mimic NextSTEP: heirarchy rooted at NSObject
- Can define your own root objects (just don't extend anything)
-
Most useful functionality built into root object
(NSObject)
- new, init, alloc
- hash, description, ...