Asp.Net C # Interview Question & answers |What is Method Overloading & Overriding?|Call by Value?

preview_player
Показать описание


5 Questions

1.What is Method Overloading?
2.What is Method Overriding?
3.What is Call by Value?
4.What is Call by Reference?
5.What is Exception Handling?

1.What is Method Overloading?
-Creating a multiple methods in a class with same name but different
parameters and types is called as method overloading. method overloading is the example
of Compile time polymorphism which is done at compile time.

2.What is Method Overriding?
-Method overriding is a feature that allows you to invoke functions
(that have the same signatures) that belong to different classes
in the same hierarchy of inheritance using the base class reference.

3.What is Call by Value?
-Means any changes that take place inside the calling method
have no affect on the original value of the variable

4.What is Call by Reference?
-C# provides a ref keyword to pass argument as reference-type.
It passes reference of arguments to the function rather than copy
of original value. The changes in passed values are permanent and
modify the original variable value.

5.What is Exception Handling?
-A C# exception is a response to an exceptional circumstance that
arises while a program is running, such as an attempt to divide by zero.
Exceptions provide a way to transfer control from one part of a program
to another. C# exception handling is built upon four keywords: try, catch,
finally, and throw.

Link of Our previous videos:-

Hope you enjoyed this video❤
Рекомендации по теме
welcome to shbcf.ru