开发者

javascript object arrays

开发者 https://www.devze.com 2022-12-11 17:27 出处:网络
Can we create a class with getters and setters and an array of objects of this class using 开发者_高级运维javascript?Javascript is not a class based object oriented language. However we can mimic this

Can we create a class with getters and setters and an array of objects of this class using 开发者_高级运维javascript?


Javascript is not a class based object oriented language. However we can mimic this behavior. This article is about implementing private variables but it may help you to design this class.


I think you are looking for something like reflection.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号