Static Classes
RemObjects Silver allows classes to be marked with the static
keyword to indicate they are purely static. All members defined in the class will automatically become static, whether they themselves are marked as static
or class
, or not. Static classes cannot be instantiated.
Example
public static class Helpers {
public func Helper() { // will be static
}
}
Version Notes
- Support for static classes is new in Version 8.2.