self.跟self->什么区别?

1> self.是调用get方法

2> self.是当前本身,是一个指向当前对象的指针

3> self->是直接访问成员变量

原文地址:https://www.cnblogs.com/yxxxiaoxiao/p/4900924.html