Since JScript is a class-based, object-oriented programming language, it is possible to define classes that can inherit from other classes. Defined classes can have methods, fields, properties, and subclasses. Inheritance enables classes to build on existing classes and override selected base-class methods and properties. The classes in JScript, which are similar to the classes in C++ and C#, are quite different from the prototype-based objects.
In This Section
- Creating Your Own Classes
-
Describes how to define a class with fields, methods, and constructors.
- Advanced Class Creation
-
Describes how to define a class with properties, how to inherit from a class, and how to create a class that supports expando properties.