+ 1
What is use of New and virual keyword in c#
1 Answer
+ 1
The new keyword is to create a new instance of a class.
ClassA myClass = new classA();
The newly myClass object is now used to reference ClassA as a class.
The virtual keyword is used in Polymorphism along with the override keyword where a derived method is able to override the derived method of the base class using virtual keyword...