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
-
http://www.icodebd.com muktadir
-
http://www.gohost.in Hosting
Tags
apache redirection blogging boot Browser directory print download download limit Download Manager download time limit effective search emacs fedora fedora 9 firefox free stuffs Google internet ISO java latex Linux maverick Media miktext mozilla no-www Open Source os PHP picture Picture of the Day python search search techniques social networking Software sulphur sun jdk thesis writing tips Tips n Tricks ubuntu utility vmware player Windows





