C#.NET Multiple choices


Total available count: 28
Subject - Microsoft Technologies
Subsubject - C#.NET

What is the use of a new keyword in polymorphism?


 

 

 

 



B


Solution:-

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.




Next 5 multiple choice(s)

1

Which of the below is not a built-in delegate?

2

Which of the below is not a way to return multiple values?

3

How to print currency value in C#.Net?

4

Which of the following declaration is wrong?

5

How to use a keyword as an identifier?

Comments