Share
What is the purpose of static methods and variables?
Question
can you please help me with this question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answer ( 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.