title: Missing 1 required positional argument in python Constructor
body: <p>I'm trying to learn inheritance concept in python. I have an Employee class and derivative class Executive.</p>
  
  <pre><code>class Employee:
      'Class defined for employee'
  
      def __init__(self, name, dept, salary):
          self.name = name
          self.dept = dept
          self.salary = salary
  </code></pre>
  
  <p>Subclass</p>
  
  <pre><code>class Executive(Employee):
  
      def __init__(self, name, dept, salary, hascar):
          Employee.__init__(name, dept, salary)
          self.hascar = hascar
  </code></pre>
  
  <p>has car is a Boolean passed into the constructor, However this will give me an error: </p>
  
  <blockquote>
    <p>File "I:\Python_practicals\com\python\oop\Executive.py", line 7, in
    <strong>init</strong>
        Employee.<strong>init</strong>(name, dept, salary) TypeError: <strong>init</strong>() missing 1 required positional argument: 'salary' </p>
  </blockquote>
  
  <p>When I try to Instantiate an object of Executive.
  <br><code>emp4 = Executive("Nirmal", "Accounting", 150000, True)</code></p>