Hi all, When I am calling a constructor within a constructor, why is it that I need to call using this(). Why can't I use the same name as that of class when I am overloading the constructor. Regds Shiva
Donald R. Cossitt
posted 12 years ago
My guess is that to use MyClass( name ) is trying to say we want a 'new' object not use a constructor. While the keyword this() is saying a constructor of 'this' class.