Classes :

1**) Constructor method:**

  1. Prototype method:
display(){ }
  1. Static method: class-level method. You can access the class.
static display(){ }
ClassName.display()

Inheritance :

In a child class, there is no constructor method at that time; it will invoke the parent class constructor, even if it is either a default or parameterised constructor.

In the child class and parent class, there are constructors that time it will raise an error; to overcome this problem, through the "super" keyword.