If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
Pamela explains the first part of object-oriented programming: creating object types and instances of those object types.
Create a Rainbow object type that can describe the many rainbows in the world.
Pamela shows how to attach methods to object types, that you can call on any instance of that object.
Create a SmileyFace object with its own methods.
Pamela shows how objects can inherit and re-use the code of other object types.
Create a Flower object type that Sunflower and Tulip can inherit from.