| Author |
Whats asp's equivilent to PHP's 'extends'?
|
|
|
| I want to be able to do the following, but im not sure how in asp.
<?php
class Cart {
var $items;
some functions.
}
?>
<?php
class Named_Cart extends Cart {
var $owner;
}
?>
| |
| Dave Anderson 2006-04-27, 7:52 am |
| Dan wrote:
> I want to be able to do the following, but im not sure how in asp.
>
> <?php
> class Cart {
> var $items;
>
> some functions.
> }
>
> <?php
> class Named_Cart extends Cart {
> var $owner;
>
> }
ASP is not a language. I would think JScript would be more conducive to this
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.
| |
|
| ok sorry not asp. vbscript
| |
| Anthony Jones 2006-04-27, 7:52 am |
|
"Dan" <danncasey@gmail.com> wrote in message
news:1146107969.592148.279640@j33g2000cwa.googlegroups.com...
> ok sorry not asp. vbscript
>
VBScript classes can not be extended. If you want to implement an OO design
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.
|
|
|
|