-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS面向对象总结【封装,继承,多态,this,prototype】(笔记) #2
Comments
写得不错,star |
|
封装(encapsulation )
访问封装属性的方法--特权方法
继承
将不同类的相同之处取出封装成独立的类
多态
Javascript-面向(基于)对象编程-介绍
如果要得到一个cat1(猫1)对象
但是要写出cat2,cat3则需要很多的代码
接着来描述下创建类(原型对象)的方式:5种
重点是第二种方式写法
那么如何判断实例是属于什么类?
Javascript-中一切都是对象
如何判断一个对象实例是不是Person类型
delete 用于删属性 delete cat1.name 注:不能直接删cat1对象,不能删除window上面的属性。
The text was updated successfully, but these errors were encountered: