|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Whats asp's equivilent to PHP's 'extends'?
<?php class Cart { var $items; some functions. } ?> <?php class Named_Cart extends Cart { var $owner; } ?> Dan wrote:
Show quote > I want to be able to do the following, but im not sure how in asp. ASP is not a language. I would think JScript would be more conducive to this > > <?php > class Cart { > var $items; > > some functions. > } > > <?php > class Named_Cart extends Cart { > var $owner; > > } than VBScript, either through prototyping or by extending an object instance. VBScript classes are much more rigid than JScript objects. -- Dave Anderson Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. "Dan" <dannca***@gmail.com> wrote in message VBScript classes can not be extended. If you want to implement an OO designnews:1146107969.592148.279640@j33g2000cwa.googlegroups.com... > ok sorry not asp. vbscript > serverside use Javascript. I don't know PHP that well but what I've seen of it Javascript would seem to be a more natural language to port to. |
|||||||||||||||||||||||