Home All Groups Group Topic Archive Search About

Whats asp's equivilent to PHP's 'extends'?



Author
27 Apr 2006 1:40 AM
Dan
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;

}
?>

Author
27 Apr 2006 2:13 AM
Dave Anderson
Dan wrote:
Show quote
> 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.
Author
27 Apr 2006 3:19 AM
Dan
ok sorry not asp.  vbscript
Author
27 Apr 2006 7:54 AM
Anthony Jones
"Dan" <dannca***@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.

AddThis Social Bookmark Button