public interface IMath<T>
{
double GetValue(T item);
}
Как так же реализовать в swift 3 HELP
haymob
#2
protocol IMath {
associatedtype ValueType
func getValue(item: ValueType) -> Double
}
class Class: IMath {
func getValue(item: Int) -> Double {
return 0
}
}