Role of new keyword

Describe the role of new keyword in brief.




New is employed to initialize a new object. We set a variable to any data type by using help of New keyword. The New keyword provides a value to the variable. We can as well employ new keyword to initialize the object variable.

Illustration: dim obj as new SqlDataAdapter.

   Related Questions in DOT NET Programming

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.