What is the use of a new keyword in polymorphism?
A new keyword is used for the runtime polymorphism (method overriding), we can change the base class function with the derived class function.
Polymorphism is a Greek word and its meaning is "one name many forms". Polymorphism provides the ability for a class to have multiple implementations with the same class name. It is one of the core principles of Object-Oriented Programming(OPPS) after encapsulation and inheritance.
An important example of polymorphism is how a parent class refers to a child class object. In fact, any object that satisfies more than one IS-A relationship is polymorphic in nature.
Which of the below is not a built-in delegate?
Which of the below is not a way to return multiple values?
How to print currency value in C#.Net?
Which of the following declaration is wrong?
How to use a keyword as an identifier?