---
title: "Discussion on \"virtual and override keywords in C#\" | Hashnode"
description: "Discussion on \"virtual and override keywords in C#\". If there were no virtual and override keywords in C#, the methods would not be explicitly marked for virtual or overridden behavior, and the default method resolution would be based on the type of the variable at compile-time. In such a scenario, whe..."
url: "https://hashnode.com/posts/virtual-and-override-keywords-in-c/64abf8b3120a3d2ff0b929d6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [virtual and override keywords in C#](https://tandan.hashnode.dev/virtual-and-override-keywords-in-c?utm_source=hashnode&utm_medium=feed)

If there were no virtual and override keywords in C#, the methods would not be explicitly marked for virtual or overridden behavior, and the default method resolution would be based on the type of the variable at compile-time. In such a scenario, whe...

Jul 10, 2023 · 2 min read · tandan.hashnode.dev  
Read the article

## Written by

[Ashok Tandan](https://hashnode.com/@ashok_tandan)

@ashok\_tandan · Gurgaon

  
[View profile](https://hashnode.com/@ashok_tandan)

software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
