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
ABC
and anotherDEF
, they have different namesIs method def a static method?
Nope, for this, you should say
static
extending class to use protocols effects memory management?
Nope