class Test: UIViewController{
func abc() {
print("This is ABC")
}
}
extension Test {
func def(){
print("This is DEF")
}
}
My question here is that
- what is the difference between both the methods declared?
- Is method def a static method?
- extending class to use protocols effects memory management?
what is the difference between both the methods declared?None, except two things
ABCand anotherDEF, they have different namesIs method def a static method?Nope, for this, you should say
staticextending class to use protocols effects memory management?Nope