You can use computed properties:
class A {
class var Name: String {
return "A"
}
}
class B: A {
override class var Name: String {
return "B"
}
}
Usage:
print(A.Name) // "A"
print(B.Name) // "B"
You can use computed properties:
class A {
class var Name: String {
return "A"
}
}
class B: A {
override class var Name: String {
return "B"
}
}
Usage:
print(A.Name) // "A"
print(B.Name) // "B"