4DIS - JavascriptTutorial - Classes

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
 
class MyClass
 
class MyClass
 
{
 
{
 +
    function MyClass ( ) { }
 +
   
 
     // ...
 
     // ...
 
}
 
}
Line 18: Line 20:
 
class MyClass
 
class MyClass
 
{
 
{
 +
    function MyClass ( ) { }
 +
   
 
     var a : int = 5;
 
     var a : int = 5;
 
     var b : float = 2.5;
 
     var b : float = 2.5;

Revision as of 08:53, 30 October 2011

Javascript Classes

4DIS - JavascriptTutorial - Back


Creating own classes :

<javascript>

class MyClass {

   function MyClass ( ) { }
   
   // ...

}


class MyClass {

   function MyClass ( ) { }
   
   var a : int = 5;
   var b : float = 2.5;

}

</javascript>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox