Win a copy of The Business Blockchain this week in the Cloud forum!
    Bookmark Topic Watch Topic
  • New Topic

call instance methods from Constructor

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is a good tehnique to call a instance method (private) from a constructor ?
I think not,the theroy says that the state from my object is not ready till the my construcor was completed -> I try to call a instance method when the instance state is not complete.Is this right ?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think it's a cross-post... I have post a reply in the SCJP forum... But I have no authority to delete it... :roll:
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks Ko Ko
Closing this topic. If anyone would like to add comments, you can find an open version here
Regards, Andrew
 
    Bookmark Topic Watch Topic
  • New Topic