title: Inheriting a constructor in java
body: <p>When we use inheritance in java can we inherit constructor of the super class by the subclass?</p>
  
  <p>At <a href="https://www.tutorialspoint.com/java/java_inheritance.htm" rel="nofollow noreferrer">tutorialspoint</a> it says:</p>
  
  <blockquote>
    <p>A subclass inherits all the members (fields, methods, and nested
    classes) from its superclass. Constructors are not members, so they
    are not inherited by subclasses, but the constructor of the superclass
    can be invoked from the subclass.</p>
  </blockquote>
  
  <p>But in somewhere the same tutorial said that:</p>
  
  <blockquote>
    <p>If a class is inheriting the properties of another class, the subclass
    automatically acquires the default constructor of the superclass.</p>
  </blockquote>
  
  <p>So I want to know can a subclass inherit the constructor of the super class?</p>