For example, consider this class:
class Foo {
private init() {
// Private init, so no instances can be created.
// All methods and properties will by owned by the type.
// So no instances will need to be created,
// as there is no instance functionality.
}
static var count = 0
static func increment() {
Foo.count += 1
}
}
Perhaps it makes no difference whether it's a class or a struct? (assuming inheritance isn't needed).