What is a static variable?

Answer Posted / hr@tgksolutions.com

To share a variable or method within a class, use the static keyword. Static variables are those that, once defined, are created and shared by all objects at the class level in a single copy.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between vb.net and c#, related to oops concepts

790


Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate

2418


How many ways the function can return values?

776


What is a static variable?

1113


Which classes a dll can contain?

742


How do you retrieve the customized properties of a .net application from xml .config file?

744


Explain public assembly?

739


What is globalization?

750


What is sorting in vb?

678


what is common type system?

707


i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate

2139


How does vb.net achieve polymorphism?

737


Explain the difference between c# and vb.net?

764


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1407


Explain the difference between namespace and assembly?

702