Private Constructor


  • A Constructor whose accessibility is private is known as private constructor
  • If a class contains private constructor then we cannot create an object for the class outside the class
  • Private Constructor  are used to create an object for the class with in the same class and to use
  • Generally private constructors are used within the Remoting concepts



No comments:

Post a Comment