1
Reply

How many places new keyword is used in C#?

Anil Jha

Anil Jha

Mar 01, 2016
364
1

    3 places i) As an operator - new keyword is used to create an instance of a class. ii) As an modifier - new keyword is used to hide methods of parent class. iii) As an constraint - new keyword is used to specify that type argument in a generic class must have public parameterless constructor. The type cannot be abstract.

    Anil Jha
    March 01, 2016
    3