title: Super and Subclasses
body: <p>I have been given an assignment that asks us to deal with three individual classes: <code>Point</code>, <code>Rectangle</code> and <code>Canvas</code>. I was just wondering if anyone could help me get a general understanding as how they are suppose to interact. The programming language is Python 3</p>
  
  <p>Here are the outputs expected:</p>
  
  <pre><code>&gt;&gt;&gt;r1=Rectangle(Point(), Point(1,1), "red")
  &gt;&gt;&gt;r1
  Rectangle(Point(0,0),Point(1,1),'red')
  </code></pre>
  
  <p>another example would be: </p>
  
  <pre><code>&gt;&gt;&gt; r3=Rectangle(Point(), Point(2,1), "red")
  &gt;&gt;&gt; r3.get_perimeter()
  6
  </code></pre>