random
random

Reputation: 10309

javascript object arrays

Can we create a class with getters and setters and an array of objects of this class using javascript?

Upvotes: -1

Views: 148

Answers (2)

Tinku
Tinku

Reputation: 1608

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.

Upvotes: 0

Ben
Ben

Reputation: 11188

I think you are looking for something like reflection.

Upvotes: 0

Related Questions