Constructor

  • Default constructor provides the Default values to the object .
  • If there is no constructor defined , java create default constructor to initialize the object .
Constructor Method
  • initialize the state of an object .
  • expose behavior of an object .
  • not have return type .
  • have return type .
  • invoked implicitly .
  • invoked explicitly .
  • Java provide default constructor in the absence of Constructor .
  • Java does not provide default method in the absence of method .
  • We can not make a constructor final . 

No comments:

Post a Comment

Optimize your Programming Skills

  Java is The most Powerful Programming Language , Because of it's Oops Concept and it's Compilation Process . After The Compilatio...