{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "update class size quarters in ProfCourses() example" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true, "jupyter": { "outputs_hidden": true }, "slideshow": { "slide_type": "slide" } }, "source": [ "# Classes\n", "\n", "- objects\n", "- `class`\n", " - attributes\n", " - methods\n", "- instances\n", " - `__init__`" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "## Objects\n", "\n", "
., followed by the attribute/method name on the object. \n",
"class keyword opens a code block for instructions on how to create objects of a particular type.\n",
"self refers to the current instance. \n",
"__init__ is a special method used to define instance attributes. \n",
"