Is it possible to write a constructorless class? if yes, how?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ciary
    Recognized Expert New Member
    • Apr 2009
    • 247

    Is it possible to write a constructorless class? if yes, how?

    hi everyone,

    the idea is actually very simple. i want to create a class like "Math" that i can use without any kind of constructor. is this possible, and how?

    thanks
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Make it a static class. All your functions and class members must also be static.

    Comment

    Working...