using static var and instance var as the variable same name in Swift that will occur compiler error. why?
example:
protocol naming {
static var firstName: String { get }
var firstName: String { get }
}
class Employee: NSObject, naming {
class var firstName: String {
return "MyName"
}
var firstName: String {
return Employee.firstName
}
}