IIS ASP - Whats asp's equivilent to PHP's 'extends'?

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > April 2006 > Whats asp's equivilent to PHP's 'extends'?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2006-04-27, 7:52 am

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.


Dan

2006-04-27, 7:52 am

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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com