How can I call a method every time when constructor is executed?
In other words,
Within a class, can I somehow call another method as soon as constructor is completed?
How can I call a method every time when constructor is executed? In other
Share
You can just call the method as the last line of the constructor.
Alternatively if you don’t own the class you can go for Aspect Oriented Programming ( http://en.wikipedia.org/wiki/Aspect_oriented_programming )