Skip to content
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

关于「组合式继承」 的疑问 #16

Open
mingyec opened this issue Feb 3, 2021 · 0 comments
Open

关于「组合式继承」 的疑问 #16

mingyec opened this issue Feb 3, 2021 · 0 comments

Comments

@mingyec
Copy link

mingyec commented Feb 3, 2021

文章链接:https://coffe1891.gitbook.io/frontend-hard-mode-interview/5/5.1.3#03-zu-he-shi-ji-cheng
其中描述的组合式继承的缺点->污染这一点,不是很理解,我自己试验了一下,增加了一个子类型,给其原型添加一个方法,其它的子类型并没有共享这个方法。
求作者大大能给点解释😵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant