Inheritance in Javascript

[Total: 0    Average: 0/5]

This code illustrates how to use inheritance in Javascript.

Body Code:

<script>
function CSessionState(valueofSS)
{ 
   if(!CSessionState.prototype.SS)
   { 
     CSessionState.prototype.SS=CSessionStateSS; 
     CSessionState.prototype.eSS=CSessionStateeSS; 
     CSessionState.prototype.update=CSessionState_update; 
     CSessionState.prototype.isDirty=CSessionStateisDirty; 
     CSessionState.prototype.extract=CSessionStateextract; 
     CSessionState.prototype.renew=CSessionStaterenew; 
     CSessionState.prototype.putValue=CNVPairsputValue; 
     CSessionState.prototype.getValue=CNVPairsgetValue; 
     CSessionState.prototype.toString=CNVPairstoString; 
     CSessionState.prototype=CNVPairs; 
   } 
  this.modified=false; 
  this.valueofSS = valueofSS; 
  this.oBase64 = new Cbase64(); 
  this.sNV = this.oBase64.decode(valueofSS); 
  this.base = CNVPairs; 
  this.base(this.sNV); 
} 
</script>
There is no observable output on this script as it is an example on how to code with inheritance only.

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *