C#.NET INTERVIEW QUESTION & ANSWERS
66. |
What are the four types of polymorphism? |
|
There are four types of polymorphism are : - Inclusion
- Parametric
- Overridding
- Overloading
|
67. |
Why is the virtual keyword used in code? |
|
The Virtual keyword is used in code to define methods and the properties that can be overridden in
derived classes. |
68. |
Can two catch blocks be executed? |
|
No, once the proper catch section is executed the control goes to finally block. So there will not be any scenarios in which multiple catch blocks will be executed. |
69. |
Can you inherit multiple interfaces? |
|
Yes. Multiple interfaces may be inherited in C#. |
70. |
What is operator overloading in .NET? |
|
Vb.net till now does not support operator overloading. Operator Overloading is done by using the "Operator" keyword. |