---
title: "Method Overriding"  
description: "Method Overriding"  
author: "Anonymous User"  
published: 2010-10-20  
updated: 2010-10-21  
canonical: https://www.mindstick.com/forum/53/method-overriding  
category: "oops"  
tags: ["oops"]  
reading_time: 1 minute  

---

# Method Overriding

What is the [concept of method overriding](https://www.mindstick.com/forum/160072/explain-the-concept-of-method-overriding-in-javascript-and-provide-an-example) in [C++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)?\
Please [advice](https://yourviews.mindstick.com/view/50528/filament-advice-5-things-to-consider-before-you-buy-a-filament) or any [helpful](https://yourviews.mindstick.com/view/81752/oximeter-for-covid-patients-is-helpful-tool) link.\

## Replies

### Reply by Uttam Misra

Overriding - Same [method](https://www.mindstick.com/forum/166/webservice-method) name with same arguments and same return type associated in a class and its subclass. \
\
Example for Overriding\
\
Class X\
{\
Virtual void Add(int a, int b)\
{\
}\
}\
\
Class Y:X\
{\
public override void Add(int a, int b)\
{ \
}\
}


---

Original Source: https://www.mindstick.com/forum/53/method-overriding

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
