Is it safe to call a instance method from constructor?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #1

    Is it safe to call a instance method from constructor?

    Is it safe to call a instance method from constructor?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    You can call an instance method. I think no harm.

    Regards
    Dheeraj Joshi

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      As long as the method doesn't try to use any member that you haven't yet initalized it should be ok.

      Comment

      Working...