Home » Tutorials » C# » Difference between static and non-static variable in C#

Difference between static and non-static variable in C#

Capitalize First Letter of each Words of string in C#

Difference between static and non-static variable in C#

 

Staic Variable Non Static Variable
Staic keyword must be used to declare Doesn’t use static keyword to declare variable. Also called as Object variable.
Called by classname.variable Called with Ojbect.variable
Only one copy would be generated. Multiple copies could be generated along with creation of object.
Initialization done before object creation. Initialization done after object creation.

 

About

Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload CAPTCHA.




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.