
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
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 Articles
- 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?
- Difference Between Data Hiding and Encapsulation
- Difference Between Abstraction and Data Hiding
- Difference Between Function Overloading and Overriding in C++
- Difference between Method Overloading and Method Overriding in Java
- What is method hiding in C#?
- What is overriding and overloading under polymorphism in java?
- What is the difference between $ and @ in R?
- What is the difference between == and === in JavaScript?
- What is instance variable hiding in Java?
- What is the difference between /* */ and /** */ comments in Java?

Advertisements