Template:Nasal Constructor inline: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 2: Line 2:
   new: func( {{{signature|arg...}}} ) {
   new: func( {{{signature|arg...}}} ) {
   # creates a temporary object that inherits from {{{name|myClass}}}
   # creates a temporary object that inherits from {{{name|myClass}}}
  # what is {{{temporary|obj}}} here, will later on be 'me' in the actual object
   var {{{temporary|obj}}} = { {{Nasal Inherit from|{{{name|myClass}}} }} };
   var {{{temporary|obj}}} = { {{Nasal Inherit from|{{{name|myClass}}} }} };
   
   
   # do any other object setup here, such as for example
   # do any other object setup here, such as for example
  # what is {{{temporary|obj}}} here, will later on be 'me'
   {{{temporary|obj}}}.message = "Hello World";
   {{{temporary|obj}}}.message = "Hello World";
    
    

Navigation menu