Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constructor
Message
De
27/03/2022 07:17:32
 
 
À
26/03/2022 14:44:21
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01683967
Message ID:
01683995
Vues:
35
Thank you Bill.

>>Hello all,
>>
>>Are there cases where it's better to not add the constructor for a class?
>>
>>I would say no but that's why I ask the question :-)
>>
>>Regards
>
>Yes, there are cases when you don't need a constructor.
>You'll need a constructor if:
>- you are passing parameters when you instantiate an object of the class
>-you are doing some initialization when you instantiate an object of the class.
>- you are using polymorphism.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform