Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Whats asp's equivilent to PHP's 'extends'?

Reply
Thread Tools

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

 
 
Dan
Guest
Posts: n/a
 
      04-27-2006
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;

}
?>

 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a
 
      04-27-2006
ok sorry not asp. vbscript

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      04-27-2006

"Dan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2.0 built-in forms security and SID equivilent David Thielen ASP .Net Security 11 03-14-2006 06:16 AM
elementFromPoint netscape/mozilla equivilent Darren Javascript 4 08-09-2005 12:22 AM
What is .Net equivilent of Fieldset/Legend Harry Keck ASP .Net Web Controls 2 05-14-2005 06:45 AM
GoBack or Equivilent DZN Computer Support 5 12-26-2004 09:16 PM
Linux Webmarshall equivilent?? Steve Robertson NZ Computing 2 07-26-2004 09:09 AM



Advertisments