Programming in Python
0 of 222 complete

Section 14: Object-oriented programming · Notes

Section notes

  • A class is a template; an object is one instance of it.
  • Attributes hold data; methods carry out behaviour.
  • __init__ prepares an object when it is created.
  • Inheritance builds a new class on top of an existing one.

Your progress is saved in this browser. Accounts are coming so it follows you across devices.