Originally posted by sri rallapalli:
According to ur explanation, it should not create an instance. But it is creating and working fine.
Please let me know.
regards,
sri.
Keith explanation is correct, but I'll give it another try.
A private constructor means that it is private. It can only be used by that class. For example, only code in the Math class can instantiate a Math object, because it is private to the Math class.
Anyway, try to instantiate a Temp object from another class --
you should not be able to.
Henry