/home/www/openlayers/OpenLayers-2.7/lib/OpenLayers/BaseTypes/Class.js - OpenLayers

# Class.js

Summary

Class.js |
Constructor |
OpenLayers. Class | Base class used to construct all other classes.
Properties |
isPrototype | Deprecated.
Functions |
OpenLayers. create | Deprecated.
inherit | Deprecated.

### Constructor

### OpenLayers. Class

Base class used to construct all other classes. Includes support for multiple inheritance.

This constructor is new in OpenLayers 2.5. At OpenLayers 3.0, the old syntax for creating classes and dealing with inheritance will be removed.

#### To create a new OpenLayers-style class, use the following syntax

>     var MyClass = OpenLayers.Class(prototype);

To create a new OpenLayers-style class with multiple inheritance, use the following syntax:

>     var MyClass = OpenLayers.Class(Class1, Class2, prototype);

### Properties

### isPrototype

Deprecated. This is no longer needed and will be removed at 3.0.

### Functions

### OpenLayers. create

Deprecated. Old method to create an OpenLayers style class. Use the OpenLayers.Class constructor instead.

#### Returns

An OpenLayers class

### inherit

> OpenLayers.Class.inherit = function ()

Deprecated. Old method to inherit from one or more OpenLayers style classes. Use the OpenLayers.Class constructor instead.

#### Parameters

class | One or more classes can be provided as arguments

#### Returns

An object prototype

> OpenLayers.Class.inherit = function ()

Deprecated.
Base class used to construct all other classes.
Close