+ 2

When we call the accessor method with the

self keyword. what actually are we calling the setter method or getter method... or are we callinv both setter and getter...

20th Feb 2017, 7:01 AM
stephen haokip
stephen haokip - avatar
2 ответов
+ 1
Well, setter methot has to set something so when you add parameter you call setter when you omit parameter you call getter.
3rd Apr 2017, 6:10 AM
eNki
0
getter
14th Apr 2017, 6:56 AM
Isse Thomas
Isse Thomas - avatar