Go to DotNetFunda.com
 Online : 845 |  Welcome, Guest!   Login
 
Home > Interview Questions > C# Interview Questions > what is Static? ... ...

  • Nominate yourself for "Agile Software Development using Scrum" online session for FREE, click here.

  • Download OOPS and ASP.NET Online training session video and PPT from here.

call for mock interview

C# Interview Questions

what is Static?

Author: Syedshakeer | Posted on: 2/20/2009 8:41:57 AM | Category: C# | Views:482 |  Print | Asked In: Many Interviews


Answer:
Static:
1)A Static memberdata or a memberfunction can be called without the help of an object.
2)Static members can be called with the help of Classname.

Syntax: classname.staticmember
3)'this ' keyword cannot be used inside a static memberfunction
4)Nonstatic members cannot be used inside a static memberfunction

Interesting?   Share and Bookmark this


Navigate to:

 Submit Interview Questions

An automatic commit ocurrs under the following circumstances ...

Class A { static byte a; static short b; static char c; static ...

Random Interview Questions
Help: If for some reason you are getting the same question by clicking Next Question or Previous Question, Try clicking Categories link above.

Related interview questions



Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)