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:
01028439
Vues:
12
>
>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?

I don't think that would be a problem. But I'm not sure what the advantage would be of designing a class that works like you describe.

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform