---
title: "What is the difference between public, static and void in c#?"  
description: "What is the difference between public, static and void in c#?"  
author: "Pradeep kumar Patel"  
published: 2019-10-29  
updated: 2019-10-29  
canonical: https://answers.mindstick.com/qa/82434/what-is-the-difference-between-public-static-and-void-in-c-sharp  
category: "programming language"  
tags: ["c#", ".net programming"]  
reading_time: 1 minute  

---

# What is the difference between public, static and void in c#?

What is the [difference](https://www.mindstick.com/blog/398/difference-between-object-type-and-var-type) between [public](https://www.mindstick.com/interview/757/why-main-in-java-is-declared-as-public-static-void-main), [static](https://www.mindstick.com/articles/12098/the-static-keyword-the-static-methods) and [void in c#](https://answers.mindstick.com/qa/82458/what-is-the-void-in-c-sharp)?


---

Original Source: https://answers.mindstick.com/qa/82434/what-is-the-difference-between-public-static-and-void-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
