---
title: "How can you prevent your class to be inherited further?"  
description: "How can you prevent your class to be inherited further?"  
author: "Sumit Kesarwani"  
published: 2014-08-27  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2051/how-can-you-prevent-your-class-to-be-inherited-further  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How can you prevent your class to be inherited further?

You can prevent a class from being inherited further by defining it with the sealed keyword.

## Answers

### Answer by Sumit Kesarwani

You can prevent a class from being inherited further by defining it with the sealed keyword.


---

Original Source: https://www.mindstick.com/interview/2051/how-can-you-prevent-your-class-to-be-inherited-further

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
