class Test: UIViewController{
func abc() {
print("This is ABC")
}
}
extension Test {
func def(){
print("This is DEF")
}
}
我的问题是
答案 0 :(得分:0)
what is the difference between both the methods declared?
没有,除了两件事
ABC
,另一个打印DEF
,它们具有不同的名称 Is method def a static method?
不,为此,您应该说static
extending class to use protocols effects memory management?
不是