Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update intro to oo presentation

  • Loading branch information...
commit d2d24a49417608612e7e2d1574a6cb684d66492d 1 parent 8101c81
@autarch authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 htdocs/presentations/intro-to-oo/index.html
View
10 htdocs/presentations/intro-to-oo/index.html
@@ -560,7 +560,7 @@
<ul>
<li>What makes this different from imperative programming?</li>
<li><code>write_file( $path, $content )</code></li>
- <li>Inheritance, Roles, and Polymorphism is one of the big differences</li>
+ <li>Inheritance, Roles, and Polymorphism are some of the big differences</li>
</ul>
</div>
@@ -678,13 +678,13 @@
<h1>Polymorphism Versus If/Then</h1>
<pre><code>if ( $file->{type} eq 'mp3' ) {
- # save file with title tag
+ # write file with title tag
} else {
- # save file
+ # write file
}
# Polymorphism lets us write ...
-$file-&gt;save();</code></pre>
+$file-&gt;write();</code></pre>
</div>
@@ -883,7 +883,7 @@
<ul>
<li>Objects can contain other objects</li>
- <li>A <code>File</code> object may return it's last modified time as a <code>DateTime</code></li>
+ <li>A <code>File</code> object may return its last modified time as a <code>DateTime</code></li>
<li>This is called <strong>composition</strong></li>
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.