I have some experience in developing with Java, Javascript and PHP.

I am reading Microsoft Visual C# 2010 Step by Step which I feel it is a very good book on introducing you to the C# language.

I seem to be having problems in understanding the static keyword. From what I understand this far if a class is declared static all methods and variable have to be static. The main method always is a static method so in the class that the main method exists all variables and methods are declared static if you have to call them in the main method. Also I have noticed that in order to call a static method from another class you do not need to create an object of that you can use the class name.

What are the advantages of declaring static variables and methods?

When should I declare static variable and methods?


Question: Does a laptop computer charge faster when off?
Answer: No one answer fits all, it really depends on the laptop!

Some have built in features (vendor specific) that speed up the battery charging, others (including most of mine) charge a lot slower when in use.

Again, no one answer fits all.