---
title: "What is the static keyword ?"  
description: "What is the static keyword ?"  
author: "Om ji mishra"  
published: 2019-10-06  
updated: 2019-10-06  
canonical: https://www.mindstick.com/forum/105398/what-is-the-static-keyword  
category: "c#"  
tags: ["c#", "programming language"]  
reading_time: 1 minute  

---

# What is the static keyword ?

What is the [static](https://www.mindstick.com/articles/12098/the-static-keyword-the-static-methods) [keyword](https://www.mindstick.com/forum/33572/sql-inner-join-keyword) ?

## Replies

### Reply by Om ji mishra

Definition:-A static is a keyword or a modifier. The static keyword can be used with a class, field, method, property, operator, events or constructor without any instance or object. The static member's which we declared can be accessed directly with a type (syntax) <class name>.<member's name>.

```
Code:- Using system;namespace static_variables{ class om{public static string name, location;public static int age;public static void Get_Details();{Console.WriteLine("Name-{0},Location-{1},age{2} ", name,location,age);}}class details{static void Main(string[] args){om.name="Vivekanand";om.location="Jhunsi";om.age= 20;}}}
```


---

Original Source: https://www.mindstick.com/forum/105398/what-is-the-static-keyword

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
