active web pages
Active Web Pages - content
previous page
next page
Zur deutschen Version
Do wersji polskiej
К русской версии
The possibilities of JavaScript
With JavaScript, the possibilities of object-oriented languages can easily be simulated.
classes:
Functions assign attributes and functions to objects.
inheritance:
Attributes are added and overwritten in a further function.
Polymorphism:
...
Ar = new Object();
Ar[0] = Ob1;
Ar[1] = Ob2;
Ar[2] = Ob3;
for (i = 0; i <3; I++)
Ar[i].anyFunction();
Restrictions of OO languages are missing (data hiding, object hierarchies) - JavaScript is not suited for large programs.