I am Salauddin Ansari. I am Senior Software Developer in Texco Software Noida.
Tuesday, 10 July 2012
what is the benefits of private constructor?
with the help of private constructor you can add a constraint in your class that nobody can create the object of your class outside the class. coz constructor is visible only inside the class.
No comments:
Post a Comment