Objects and Classes
Map
Arrows point from what you learn first to what it opens. Point at a concept to light up its chain and where it comes back deeper. Right-click a concept (or press and hold it) for its lessons and stories.
- Proven to depth123
- Open
- Locked
- Comes back deeper
Learning path
In the order the concepts build on each other.
- Classes and objectsLockedA class describes a new kind of value, what each one holds and what it can do; objects are the values made from it, each with its own attributes.Opens after: Functions in code, Dictionaries
- EncapsulationLockedKeeping an object's data behind its methods and properties, so the object can make sure its own rules always hold.Opens after: Classes and objects, Exceptions
- InheritanceLockedMaking a new class from an existing one, so it gets the parent's attributes and methods and changes only what differs; and knowing when to hold another object instead.Opens after: Classes and objects
Connections to other domains
- Classes and objects leads to DecompositionFunctions
- Classes and objects needs Functions in codeFunctions
- Classes and objects needs DictionariesData Structures
- Encapsulation needs ExceptionsWriting Correct Code