---
title: "What  is class in c#?"  
description: "What  is class in c#?"  
author: "Pradeep kumar Patel"  
published: 2019-10-23  
updated: 2019-10-23  
canonical: https://answers.mindstick.com/qa/82394/what-is-class-in-c-sharp  
category: "programming language"  
tags: ["c#", ".net programming"]  
reading_time: 1 minute  

---

# What  is class in c#?

What is [class](https://www.mindstick.com/articles/12089/arrays-in-java-determining-class-of-an-array-part-8) in c#?

\

## Answers

### Answer by Pradeep kumar Patel

When you define a class then you define a blueprint for a data type. A class describes these things like data such as fields, methods, properties, members, and events in to a single unit. And in most cases, when you create an instance of that class, now referred to as an object. The class is actually a group of similar objects and logical data. Let's see an example of C# class that has two fields only.

```
               public class Student
                  {
                  int id;//field or data member
                  String name;//field or data member
                    }
```

\


---

Original Source: https://answers.mindstick.com/qa/82394/what-is-class-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
