Class-based Objects
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.
Related Sections
JScript Objects
Includes links to topics that explain the syntax and uses of the intrinsic JScript objects.JScript Modifiers
Describes the modifiers that can be used to control the visibility of class members, how classes inherit, and how classes behave.Prototype-based Objects
Provides a guide to using the JScript prototype-based object model and links to information that describes custom constructor functions and inheritance for prototype-based objects.JScript Reference
Lists elements that compose JScript Language Reference and links to topics that explain the details behind the proper use of language elements.