Interviews - C# Corner

Anil Jha
How many places new keyword is used in C#?
By Anil Jha in C# onMar 01 2016
  • Anil Jha
    Mar, 2016 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.

    • 3

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS