[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Is a Static Class Possible in OOABL?

  • Thread starter Thread starter bronco
  • Start date Start date
Status
Not open for further replies.
B

bronco

Guest
Well, members (methods, variables, properties etc) are static, classes aren't. You can prevent instantiation by giving a class just a private constructor. This way it cannot be inherited either. If you make the class abstract as well, it cannot be instantiated by itself, leaving only static methods as an option to do something useful. So if your class is abstract and has only a private constructor (ie it's a "static class") and only static methods there's no point in having a destructor since the destructor is only called when an instance is deleted.

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