

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between overriding and hiding in C#?
Method hiding is also called shadowing in C#. The method of the parent class is available to the child class without using the override keyword in shadowing. The child class has its own version of the same function.
Define a behavior that is specific to the subclass type in overriding, you, which means a subclass can implement a parent class method based on its requirement.
Hiding redefines the complete method, whereas overriding redefines only the implementation of the method.
In Overriding, you can access the base class using the child class’ object overridden method.. Shadowing has cannot access the child class methods.
- Related Questions & Answers
- What is the difference between method hiding and method overriding in Java?
- What is the difference between function overriding and method hiding in C#?
- Difference between Method Overriding and Method Hiding in C#
- What is the difference between overriding and shadowing in C#?
- What is the difference between method overloading and method hiding in Java?
- What is the difference between method overloading and method overriding in Java?
- Difference Between Abstraction and Data Hiding
- Difference Between Data Hiding and Encapsulation
- Difference Between Function Overloading and Overriding in C++
- What is the difference between == and === in JavaScript?
- What is the difference between $ and @ in R?
- What is the difference between jQuery.prop() and jQuery.attr()?
- What is the difference between jQuery and JavaScript?
- What is the difference between jQuery.size() and jQuery.length?
- What is the difference between jQuery and AngularJS?
Advertisements