What is the difference between this() and super()?

this() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor.

Leave a Reply

Your email address will not be published. Required fields are marked *