1

Does jQuery class support interfaces that must be implemented by a class like Java does?

genesis
  • 50,477
  • 20
  • 96
  • 125
Marlon
  • 13
  • 3

3 Answers3

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 -

http://www.dustindiaz.com/roll-out-your-own-interface/

Community
  • 1
  • 1
ipr101
  • 24,096
  • 8
  • 59
  • 61
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
0

Javascript has no classes, so I think that short answer is no

genesis
  • 50,477
  • 20
  • 96
  • 125