Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Static Class
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01028423
Message ID:
01028426
Vues:
11
Ok, so consider a small example:
Class1 oTest = new Class1();
oTest.Method1();		// Method1 is not static

Test1.Class1.Method2();		// Method2 is static
What if I had to call both Method1 and Method2?



>A static class doesn't need to have an object created in order to access its properties and methods.
>
>Malcolm
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform