摘要: 一个类可以去继承其他类里面的东西,这里定义一个叫Person的类,然后在constructor里面添加两个参数:name和birthday; 下面再添加一个自定义的方法intro,这个方法就是简单地返回this.name和this.birthday; class Person{ constructo 阅读全文
posted @ 2021-08-17 19:44 wamm521 阅读(73) 评论(0) 推荐(0) 编辑