Does jQuery class support interfaces that must be implemented by a class like Java does?
Asked
Active
Viewed 1,290 times
3 Answers
1
As JavaScript is a dynamic language interfaces would not normally be used, there's more info in this question -
Are Interfaces in JavaScript necessary?
There was a book released some time ago that looked at implementing constructs like interfaces in JavaScript. Here's a post from the blog of one of the book's authors that specifically deals with implementing interfaces -
0
May be you could try this:js-Interface
It can help you to write the 'interface patten' in javascript .it's very easy

Kaicui
- 3,795
- 1
- 15
- 20