假如有个类Person,实例化(new)一个对象$zhangsan,那么如何使用对象$zhangsan调用Person类中的cook方法?
A、$this->cook();
B、$zhangsan::cook();
C、$zhangsan->cook();
D、$zhangsan=>cook()
发布时间:2024-10-14 20:52:54
A、$this->cook();
B、$zhangsan::cook();
C、$zhangsan->cook();
D、$zhangsan=>cook()