[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Static constructor

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Static constructors don’t execute up the hierarchy the way an instance constructor does. Besides which you didn’t even call anything in the child class, you called something in the parent. The parent doesn’t even know that the child class exists. A static constructor runs when some static method or property in that class is called. That’s it. So if you had a static method or property in MyClass and referenced it, that static constructor will run. You shouldn’t need to worry about it. It is only necessary to run the static constructor before other static elements in that class run, in order to initialize static properties before they might be used. Laura Sent from my iPad

Continue reading...
 
Status
Not open for further replies.
Back
Top