Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A different kind of OOP
Message
From
18/07/2002 01:08:54
 
 
To
17/07/2002 22:38:02
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00679859
Message ID:
00679874
Views:
22
Hi, Jim.

Well, about the "static" methods and the like that you refer, they´re useful. Think that in VFP, you can have a UDF that does some specific... in .NET we don´t have such thing, because everything is OO. However, you can create a static method that´s like your UDF... why instantiate a class, if you just need to run some code? :)

Also, with a static property (field), you can easily, for example, count how many instances of a class does exists.

Another thing different (and good): in .NET you can really define "abstract" classes, so, you can guarantee that a given class cannot be instantiated directly....
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform