Many OOP languages ( Smalltalk, C++,Java, objective-C) tie together object creation  and initialization.
  We discuss two mechanisms, classes(factory) methods and constructors.

                                        Class Methods
 

As in ++, a Constructor in java is a method ( i.e. member function)      class newClass {
                . . . . . . .
                newClass ( int i ) {
 
                    . . . // initialization
 
                        }
}
 

                                           Destructors in java
 

          - Does any other "housecleaning" needed (close files, etc.)
          - Executes at unpredictable time
          - Should not be depended upon for correctness - do critical ' housecleaning" tasks explicitly