Originally posted by Rock Xen:
........
Constructor of class do return something rite?
....
Normal scenario is that,we use constructor to initialize values.
I haven't seen a situation where constructor returns some information.
And i suppose you cannot achieve that one.
And one more thing is that,the absence of return type only makes a difference between normal methods and constructors.
Here what matters is the
new, which has return type.The new object is, in effect, part of the input to the constructor.