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
moose poop looks like football shaped elk poop. About the size of this tiny ad:
a bit of art, as a gift, the permaculture playing cards