---
title: "What is difference between class and structure?"  
description: "What is difference between class and structure?"  
author: "Jonas Stuart"  
published: 2016-09-17  
updated: 2016-09-17  
canonical: https://www.mindstick.com/forum/34178/what-is-difference-between-class-and-structure  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is difference between class and structure?

Hi buddy\
I am [beginner](https://www.mindstick.com/forum/23159/need-beginner-project-ideas) in c# .Can you tell me about [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between [class and structure](https://www.mindstick.com/interview/23015/c-sharp-difference-between-class-and-structure).I appreciate your help.\
Thanks\

## Replies

### Reply by Abhishek Srivasatava

Hi Jonas ,\

Below are the points to specify the difference between the [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) and Structure:

\

Structure is not referenced type, but it is a value type. where as class is a reference type \
Reference type means that memory is allocated only when the object is created.

Value type means memory is allocated when declaration is done means hold the values in the memory at the time of declaration.

Structure is declare by using Keyword as Struct.

The structure does not support Inheritance.

The structure does not have destructor.

The structure does not have a default constructor.

A structure can implement one or more than one interface.

Structure members cannot be specified as abstract, virtual, or protected.

\

Thanks

\


---

Original Source: https://www.mindstick.com/forum/34178/what-is-difference-between-class-and-structure

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
