Can we create a class with getters and setters and an array of objects of this class using javascript?
- 
        2Yes. Why isn't it working for you? Perhaps you could post some code.Mark Byers– Mark Byers2009-11-19 09:45:10 +00:00Commented Nov 19, 2009 at 9:45
- 
        1Take a look here: stackoverflow.com/questions/812961/…Darin Dimitrov– Darin Dimitrov2009-11-19 09:51:32 +00:00Commented Nov 19, 2009 at 9:51
                    
                        Add a comment
                    
                 | 
            
                
            
        
         
    2 Answers
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.
