search

Home  >  Q&A  >  body text

你们怎么理解对象的属性和方法的啊? 是不是 对象的属性即有那些效果 而方法是不是就是如何利用这些效果啊?

如题

phpcn_u224phpcn_u2243044 days ago1053

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:50:29

    How do you understand the properties and methods of objects? Do the properties of objects have those effects, and do methods mean how to use these effects? -PHP Chinese website Q&A-How do you understand the properties and methods of objects? Is it true that the properties of an object have those effects, and is the method how to use these effects? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-17 16:24:05

    对象相当于一个人,属性就是性别,胖瘦,身高,是必须通过该对象来获取的【值】;方法是这个人可以干什么,减肥,吃饭,看电视,逛街,是必须通过该对象才能执行的【行为】。

    reply
    0
  • Cancelreply