Skip to content

内存布局 #1

@Deeer

Description

@Deeer

文中写道

类的本质是结构体,在结构体中包含一些成员变量,例如method list 、ivar list 等,
这些都是结构体的一部分,method、protocol、property的实现这些都可以放到类中,
所有对象调用同一份即可...

1.文中说明的methodlist 和metod 有什么不同
2.文中说明的对象是类对象 or 实例对象
3.若是实例对象,那么实例对象的私有方法,对应的也就是实例对象的methodlist 是做如何处理的呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions