What is the difference between this & this(), super & super()

Well the topic is a basic in OOP, when I first learned my first OO language (C++ back in 2004), I have learned the basic. Few days ago some one asked the question, suddenly I become confused, so I made a quick research, and decided to post 🙂

this and super both are object. this() and super() both are constructors.

this is the object of current class.

this() is the constructor of current class.

super is the object of parent class.

super() is the constructor of parent class.

Example (in java) please check out this nice example provided in this link

I hope this will save someone’s day 🙂