After several approaches, I finally found an elegant and functional solution to use Javascript in an OOP way, without use third party libraries or use particular tricks.
The objectives I had in mind was:

  1. Realize a Java/Actionscript-like class
  2. Provide a constructor for the class
  3. Implementing public method
  4. Implementing private method
  5. Ensure encapsulation (class properties can’t be changed by assigning a value to the relative instance’s property)

More >