|
@@ -94,7 +94,7 @@
|
|
</code></pre>
|
|
</code></pre>
|
|
|
|
|
|
<h4 class="section-h4">Methods</h4>
|
|
<h4 class="section-h4">Methods</h4>
|
|
- <p>Functions declared inside a class are called methods and are used to add behaviors to object that belongs to a specific class:</p>
|
|
|
|
|
|
+ <p>Functions declared inside a class are called methods and are used to add behaviors to objects that belong to a specific class:</p>
|
|
<pre><code class="swift">
|
|
<pre><code class="swift">
|
|
class Italy {
|
|
class Italy {
|
|
func print() {
|
|
func print() {
|
|
@@ -104,7 +104,7 @@
|
|
</code></pre>
|
|
</code></pre>
|
|
|
|
|
|
<h4 class="section-h4">Properties</h4>
|
|
<h4 class="section-h4">Properties</h4>
|
|
- <p>Variables declared inside a class are called properties and are used to add states to object that belongs to a specific class:</p>
|
|
|
|
|
|
+ <p>Variables declared inside a class are called properties and are used to add states to objects that belong to a specific class:</p>
|
|
<pre><code class="swift">
|
|
<pre><code class="swift">
|
|
class Italy {
|
|
class Italy {
|
|
var population = 60656000;
|
|
var population = 60656000;
|