I want to know the difference between static and non static method except that we can access the static method by class name .How to choose whether method should be declared as static or non static. Thanks
If you need the different copies of variable for different object it has to be made instance variabe(non-static). If you want to share a common variable between every object of that class type, you have to go for static variable
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking