Interviews1 answer
1 Answer
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 JhaPosted Mar 1, 2016, 2:50 AM EST
