Stenway Developer Network

class Keyword

Define a class

There are three types of classes: instance, static and abstract classes. Static and abstract classes cannot be instantiated.

namespace MyLib
  class MyInstanceClass
  
  end
  
  static class MyStaticClass
  
  end
  
  abstract class MyAbstractClass
  
  end
end

The access modifier always goes before the class type keyword

namespace MyLib
  internal static class MyInternalStaticClass
  
  end
end