IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Store
   ► KBWebsite Scri...ASP ClassicOOP   Print This     

ASP Classic KB: OOP Topic

OOP Overview: Class based language. Although you can create classes, ASP is not fully OOP. It is a traditional language with a few OOP extensions. You code in a tradtional approach using functions, procedures, and global data, and you can make use of simple classes to help organize your reusable code.

11 Articles Found in the OOP Topic 

  KB Article    

Mike Prestwood
1. ASP Classic Class..Object (Class..Set..New)

Ultra-primitive (no inheritance) but useful and encourages you to think and design using objects.

12 years ago, and updated 11 years ago
(2 Comments , last by Ganes.J )

Code

KB Post
Nothing New Since Your Last Visit
15948
Hits

ASP Classic Coding

Mike Prestwood
2. ASP Classic Constructors (Class_Initialize)

When an object instance is created from a class, ASP calls a special parameter-less sub named Class_Initialize. Since you cannot specify parameters for this sub, you also cannot overload it.

When a class is destroyed, ASP calls a special sub called Class_Terminate.

11 years ago, and updated 11 years ago
(1 Comments , last by Anonymous )

Code

KB Post
Nothing New Since Your Last Visit  
33005
Hits

ASP Classic Coding

Mike Prestwood
3. ASP Classic Destructor (Class_Terminate)

When an object instance is destroyed, ASP calls a special parameter-less sub named Class_Terminate. For example, when the variable falls out of scope. Since you cannot specify parameters for this sub, you also cannot overload it.

When an object instance is created from a class, ASP calls a special sub called Class_Initialize.

11 years ago, and updated 11 years ago
(1 Comments , last by Anonymous )

Code

KB Post
Nothing New Since Your Last Visit  
21058
Hits

ASP Classic Coding

Mike Prestwood
4. ASP Classic Inheritance (Not Supported)

General Info: Inheritance

The concept of a class makes it possible to define subclasses that share some or all of the main class characteristics. This is called inheritance. Inheritance also allows you to reuse code more efficiently. In a class tree, inheritance is used to design classes vertically. (You can use Interfaces to design classes horizontally within a class tree.) With inheritance, you are defining an "is-a" relationship (i.e. a chow is-a dog). Analysts using UML call this generalization where you generalize specific classes into general parent classes.

ASP Classic Inheritance

12 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
7556
Hits

ASP Classic Coding

Mike Prestwood
5. ASP Classic Interfaces (Not Supported)

Although ASP Classic does support simple classes, it does not support interfaces.

12 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
8153
Hits

ASP Classic Coding

Mike Prestwood
6. ASP Classic Member Field

ASP Classic does support member fields, but, as usual, you cannot initialize the type nor value of a member field. The type is implied by usage.

12 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
8172
Hits

ASP Classic Coding

Mike Prestwood
7. ASP Classic Member Method (Sub, Function)

ASP classic uses the keywords sub and function. A sub does not return a value and a function does. Many programmers like to use the optional call keyword when calling a sub to indicate the call is to a procedure.

12 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
9057
Hits

ASP Classic Coding

Mike Prestwood
8. ASP Classic Member Modifiers (Default)

Other than visibility modifiers Public and Private, the only other member modifier available in ASP Classic is Default which is used only with the Public keyword in a class block. It indicates that the sub, function, or property is the default method for the class. You can have only one Default per class.

11 years ago

Code
Nothing New Since Your Last Visit
7848
Hits

ASP Classic Coding

Mike Prestwood
9. ASP Classic Member Property (Property..Get..Let)

ASP classic uses the property keyword and special Get and Let methods to both get and set the values of properties.

12 years ago, and updated 11 years ago
(5 Comments , last by Beauvais.G )

Code

KB Post
Nothing New Since Your Last Visit
13023
Hits

ASP Classic Coding

Mike Prestwood
10. ASP Classic Member Visibility (Private, Public)

The member visibility modifiers are Private and Public. If not specified, the default is Public. Private and Public have the usual meaning. Private members are visible only within the class block. Public members are visible within the class and outside of the class.

11 years ago

Code

Article
Nothing New Since Your Last Visit
17480
Hits

ASP Classic Coding

Mike Prestwood
11. ASP Classic Static Members (Not Supported)

Although ASP Classic supports the creation of simple classes, it does not support static methods.

12 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
10759
Hits

ASP Classic Coding

Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New ASP Classic Coding Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  ASP Classic Coding Message Board
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]