What is the purpose of static methods and variables?

Question

can you please help me with this question

Answer ( 1 )

  1. Static methods and variables are used to define functionality and data that applies to an entire class, rather than just a single instance of that class. This makes them useful for sharing data and functionality across an application. 

Leave an answer