Repository navigation
Expand file tree
/
Copy pathIntroduction_to_OOP.html
More file actions
277 lines (244 loc) · 25.4 KB
/
Copy pathIntroduction_to_OOP.html
File metadata and controls
277 lines (244 loc) · 25.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta content="Topic: Introducing object oriented programming in python, Difficulty: Easy, Category: Section" name="description" />
<meta content="class, type, creation, definition, intro, overview, basics, meaning" name="keywords" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Introduction to Object Oriented Programming — Python Like You Mean It</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/my_theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-115029372-1"></script>
<script src="../_static/gtag.js"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script>window.MathJax = {"tex": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true}, "options": {"ignoreHtmlClass": "tex2jax_ignore|mathjax_ignore|document", "processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
<script defer="defer" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Defining a New Class of Object" href="ClassDefinition.html" />
<link rel="prev" title="Module 4: Object Oriented Programming" href="../module_4.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home"> Python Like You Mean It
</a>
<div class="version">
1.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Table of Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Python Like You Mean It</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_1.html">Module 1: Getting Started with Python</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a><ul class="current">
<li class="toctree-l2 current"><a class="current reference internal" href="#">Introduction to Object Oriented Programming</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#Class-vs-Type:-An-Important-Note-on-Terminology">Class vs Type: An Important Note on Terminology</a></li>
<li class="toctree-l3"><a class="reference internal" href="#Links-to-Official-Documentation">Links to Official Documentation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="ClassDefinition.html">Defining a New Class of Object</a></li>
<li class="toctree-l2"><a class="reference internal" href="ClassInstances.html">Instances of a Class</a></li>
<li class="toctree-l2"><a class="reference internal" href="Brief_Review.html">A Brief Summary of Terms and Concepts</a></li>
<li class="toctree-l2"><a class="reference internal" href="Methods.html">Methods</a></li>
<li class="toctree-l2"><a class="reference internal" href="Applications_of_OOP.html">Applications of Object Oriented Programming</a></li>
<li class="toctree-l2"><a class="reference internal" href="Special_Methods.html">Special Methods</a></li>
<li class="toctree-l2"><a class="reference internal" href="Inheritance.html">Inheritance</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changes.html">Changelog</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">Python Like You Mean It</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home"></a> »</li>
<li><a href="../module_4.html">Module 4: Object Oriented Programming</a> »</li>
<li>Introduction to Object Oriented Programming</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/Module4_OOP/Introduction_to_OOP.md.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<style>
/* CSS overrides for sphinx_rtd_theme */
/* 24px margin */
.nbinput.nblast.container,
.nboutput.nblast.container {
margin-bottom: 19px; /* padding has already 5px */
}
/* ... except between code cells! */
.nblast.container + .nbinput.container {
margin-top: -19px;
}
.admonition > p:before {
margin-right: 4px; /* make room for the exclamation icon */
}
/* Fix math alignment, see https://github.com/rtfd/sphinx_rtd_theme/pull/686 */
.math {
text-align: unset;
}
</style>
<div class="section" id="Introduction-to-Object-Oriented-Programming">
<h1>Introduction to Object Oriented Programming<a class="headerlink" href="#Introduction-to-Object-Oriented-Programming" title="Permalink to this headline"></a></h1>
<p>Our first foray into the essentials of Python introduced us to the <a class="reference external" href="http://www.pythonlikeyoumeanit.com/Module2_EssentialsOfPython/Basic_Objects.html">basic object types: numbers, strings, and lists</a>. Likewise, our discussion of NumPy was centered around the <a class="reference external" href="http://www.pythonlikeyoumeanit.com/Module3_IntroducingNumpy/IntroducingTheNDarray.html">N-dimensional array</a>. These types of objects are distinguished in large part by the different functions that are bound to them. Functions bound to
objects are known as <strong>methods</strong>. For example, where a string possesses methods designed to manipulate its sequence of characters, a NumPy array possesses methods for operating on the numerical data bound to that array.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Different types of objects can possess different methods</span>
<span class="o">>>></span> <span class="n">string</span> <span class="o">=</span> <span class="s2">"hello world"</span>
<span class="o">>>></span> <span class="n">string</span><span class="o">.</span><span class="n">capitalize</span><span class="p">()</span> <span class="c1"># use the string-method `capitalize`</span>
<span class="s1">'Hello world'</span>
<span class="o">>>></span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="o">>>></span> <span class="n">array</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span>
<span class="o">...</span> <span class="p">[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">]])</span>
<span class="o">>>></span> <span class="n">array</span><span class="o">.</span><span class="n">sum</span><span class="p">()</span> <span class="c1"># use the array-method `sum`</span>
<span class="mi">15</span>
</pre></div>
</div>
<p>More generally, an object can possess data, known as <strong>attributes</strong>, which summarize information about that object. For example, the array-attributes <code class="docutils literal notranslate"><span class="pre">ndim</span></code> and <code class="docutils literal notranslate"><span class="pre">shape</span></code> provide information about the indexing-layout of that array’s numerical data.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># accessing an object's attributes</span>
<span class="o">>>></span> <span class="n">array</span><span class="o">.</span><span class="n">ndim</span>
<span class="mi">2</span>
<span class="o">>>></span> <span class="n">array</span><span class="o">.</span><span class="n">shape</span>
<span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span>
</pre></div>
</div>
<p>In this module, we will learn to define our own, customized object types with distinct collections of attributes and methods. In this way, we will be using Python as an “objected oriented” programming language; this will greatly expand our capabilities as Python users, and deepen our understanding of the language itself.</p>
<p>As a sneak peek example, let’s create our own class of objects known as <code class="docutils literal notranslate"><span class="pre">Rectangle</span></code>:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Rectangle</span><span class="p">:</span>
<span class="sd">""" A Python object that describes the properties of a rectangle """</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="n">height</span><span class="p">,</span> <span class="n">center</span><span class="o">=</span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span> <span class="mf">0.0</span><span class="p">)):</span>
<span class="sd">""" Sets the attributes of a particular instance of `Rectangle`.</span>
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> width : float</span>
<span class="sd"> The x-extent of this rectangle instance.</span>
<span class="sd"> height : float</span>
<span class="sd"> The y-extent of this rectangle instance.</span>
<span class="sd"> center : Tuple[float, float], optional (default=(0, 0))</span>
<span class="sd"> The (x, y) position of this rectangle's center"""</span>
<span class="bp">self</span><span class="o">.</span><span class="n">width</span> <span class="o">=</span> <span class="n">width</span>
<span class="bp">self</span><span class="o">.</span><span class="n">height</span> <span class="o">=</span> <span class="n">height</span>
<span class="bp">self</span><span class="o">.</span><span class="n">center</span> <span class="o">=</span> <span class="n">center</span>
<span class="k">def</span> <span class="fm">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">""" Returns a string to be used as a printable representation</span>
<span class="sd"> of a given rectangle."""</span>
<span class="k">return</span> <span class="s2">"Rectangle(width=</span><span class="si">{w}</span><span class="s2">, height=</span><span class="si">{h}</span><span class="s2">, center=</span><span class="si">{c}</span><span class="s2">)"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">h</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">height</span><span class="p">,</span>
<span class="n">w</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">width</span><span class="p">,</span>
<span class="n">c</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">center</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">compute_area</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">""" Returns the area of this rectangle</span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> float"""</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">width</span> <span class="o">*</span> <span class="bp">self</span><span class="o">.</span><span class="n">height</span>
<span class="k">def</span> <span class="nf">compute_corners</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">""" Computes the (x, y) corner-locations of this rectangle, starting with the</span>
<span class="sd"> 'top-right' corner, and proceeding clockwise.</span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> List[Tuple[float, float], Tuple[float, float], Tuple[float, float], Tuple[float, float]]"""</span>
<span class="n">cx</span><span class="p">,</span> <span class="n">cy</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">center</span>
<span class="n">dx</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">width</span> <span class="o">/</span> <span class="mf">2.0</span>
<span class="n">dy</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">height</span> <span class="o">/</span> <span class="mf">2.0</span>
<span class="k">return</span> <span class="p">[(</span><span class="n">cx</span> <span class="o">+</span> <span class="n">x</span><span class="p">,</span> <span class="n">cy</span> <span class="o">+</span> <span class="n">y</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span><span class="p">,</span><span class="n">y</span> <span class="ow">in</span> <span class="p">((</span><span class="n">dx</span><span class="p">,</span> <span class="n">dy</span><span class="p">),</span> <span class="p">(</span><span class="n">dx</span><span class="p">,</span> <span class="o">-</span><span class="n">dy</span><span class="p">),</span> <span class="p">(</span><span class="o">-</span><span class="n">dx</span><span class="p">,</span> <span class="o">-</span><span class="n">dy</span><span class="p">),</span> <span class="p">(</span><span class="o">-</span><span class="n">dx</span><span class="p">,</span> <span class="n">dy</span><span class="p">))]</span>
</pre></div>
</div>
<p>An instance of this <code class="docutils literal notranslate"><span class="pre">Rectangle</span></code> class is an individual rectangle whose <em>attributes</em> include its width, height, and center-location. Additionally, we can use the rectangle’s <em>methods</em> (its attributes that are functions) to compute its area and the locations of its corners.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># create a rectangle of width 4, height 10, centered at (0, 0)</span>
<span class="c1"># here __init__ is executed and the width/height/center attributes are set</span>
<span class="o">>>></span> <span class="n">rect1</span> <span class="o">=</span> <span class="n">Rectangle</span><span class="p">(</span><span class="mi">4</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span>
<span class="c1"># the __repr__ method defines how a rectangle instance will be displayed here</span>
<span class="c1"># in the console</span>
<span class="o">>>></span> <span class="n">rect1</span>
<span class="n">Rectangle</span><span class="p">(</span><span class="n">width</span><span class="o">=</span><span class="mi">4</span><span class="p">,</span> <span class="n">height</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span> <span class="n">center</span><span class="o">=</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="c1"># compute the area for this particular rectangle</span>
<span class="o">>>></span> <span class="n">rect1</span><span class="o">.</span><span class="n">compute_area</span><span class="p">()</span>
<span class="mi">40</span>
<span class="c1"># compute the corner-locations of this rectangle</span>
<span class="o">>>></span> <span class="n">rect1</span><span class="o">.</span><span class="n">compute_corners</span><span class="p">()</span>
<span class="p">[(</span><span class="mf">2.0</span><span class="p">,</span> <span class="mf">5.0</span><span class="p">),</span> <span class="p">(</span><span class="mf">2.0</span><span class="p">,</span> <span class="o">-</span><span class="mf">5.0</span><span class="p">),</span> <span class="p">(</span><span class="o">-</span><span class="mf">2.0</span><span class="p">,</span> <span class="o">-</span><span class="mf">5.0</span><span class="p">),</span> <span class="p">(</span><span class="o">-</span><span class="mf">2.0</span><span class="p">,</span> <span class="mf">5.0</span><span class="p">)]</span>
</pre></div>
</div>
<p>Just like any other Python object that we have encountered, we can put our <code class="docutils literal notranslate"><span class="pre">Rectangle</span></code>s in lists, store them as values in dictionaries, pass them to functions, reference them with multiple variables, and so on.</p>
<p>Popular STEM, data analysis, and machine learning Python libraries rely heavily on the ability to define custom classes of Python objects. For example, <a class="reference external" href="https://pandas.pydata.org/">pandas</a> defines a spreadsheet-like <code class="docutils literal notranslate"><span class="pre">DataFrame</span></code> class; <a class="reference external" href="https://pytorch.org/">PyTorch</a>, <a class="reference external" href="https://mxnet.incubator.apache.org/">MXNet</a>, and <a class="reference external" href="https://www.tensorflow.org/">TensorFlow</a> each define tensor classes that are capable of <a class="reference external" href="https://en.wikipedia.org/wiki/Automatic_differentiation">automatic
differentiation</a>, which is critically important for training neural networks. Understanding Python’s class system will greatly improve your ability to leverage libraries like these (Shameless plug: refer to <a class="reference external" href="https://mygrad.readthedocs.io">MyGrad</a> if you are interested in seeing a simple pure-Python/NumPy implementation of an auto-differentiation library).</p>
<p>Moving forward, we will discuss the essential <em>class definition</em>, which will permit us to define our own class (a.k.a. type) of object. Next, we will learn about creating distinct <em>instances</em> of a given object type and about defining methods. This will lead to our first encounter with <em>special methods</em>, which enable us to affect how our object type behaves with Python’s various operators. For example, we can define how the <code class="docutils literal notranslate"><span class="pre">+</span></code> operator interacts with our objects. Lastly, we will briefly
discuss the concept of class inheritance.</p>
<div class="admonition note">
<p class="admonition-title fa fa-exclamation-circle"><strong>Takeaway:</strong></p>
<p>The goal of this module is to understand how to define and utilize our own class of Python objects. This will greatly mature our understanding of Python as an object-oriented language, and will expand our ability to fully leverage all of Python’s features.</p>
</div>
<div class="section" id="Class-vs-Type:-An-Important-Note-on-Terminology">
<h2>Class vs Type: An Important Note on Terminology<a class="headerlink" href="#Class-vs-Type:-An-Important-Note-on-Terminology" title="Permalink to this headline"></a></h2>
<p>Before proceeding any further, it is worthwhile to draw our attention to the fact that the terms “type” and “class” are practically synonymous in Python. Thus far, we have only encountered the term “type” to distinguish objects from one another, e.g. <code class="docutils literal notranslate"><span class="pre">1</span></code> belongs to the type <code class="docutils literal notranslate"><span class="pre">int</span></code> and <code class="docutils literal notranslate"><span class="pre">"cat"</span></code> belongs to the type <code class="docutils literal notranslate"><span class="pre">str</span></code>. However, we will soon study <em>class</em> definitions for making new types objects, and soon introduce functions like <code class="docutils literal notranslate"><span class="pre">issubclass</span></code> into our lexicon. That being said, know that
<em>class</em> and <em>type</em> mean the same thing! There are historical reasons for the coexistence of these two terms, but <a class="reference external" href="https://www.python.org/download/releases/2.2/descrintro/">since Python 2.2</a> concepts of type and class have been unified.</p>
<p>In practice, people tend to reserve the word “type” to refer to built-in types (e.g. <code class="docutils literal notranslate"><span class="pre">int</span></code> and <code class="docutils literal notranslate"><span class="pre">str</span></code>) and “class” to refer to user-defined types. Again, in the modern versions of Python, these terms carry no practical distinction.</p>
<div class="admonition note">
<p class="admonition-title fa fa-exclamation-circle"><strong>Takeaway:</strong></p>
<p>The terms “type” and “class” are synonymous; they both refer to the encapsulating definition of a specific type/class of Python object, with all of its attributes. Although they are not treated synonymously within the Python language - we will write class definitions, not type definitions, and we will use <code class="docutils literal notranslate"><span class="pre">type</span></code> to inspect an object and not <code class="docutils literal notranslate"><span class="pre">class</span></code> - these distinctions are merely relics of versions of Python long passed.</p>
</div>
</div>
<div class="section" id="Links-to-Official-Documentation">
<h2>Links to Official Documentation<a class="headerlink" href="#Links-to-Official-Documentation" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><a class="reference external" href="https://docs.python.org/3/tutorial/classes.html#a-first-look-at-classes">Python Tutorial: A First Look at Classes</a></p></li>
</ul>
</div>
</div>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../module_4.html" class="btn btn-neutral float-left" title="Module 4: Object Oriented Programming" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="ClassDefinition.html" class="btn btn-neutral float-right" title="Defining a New Class of Object" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>© Copyright 2021, Ryan Soklaski.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>