Results 1 to 2 of 2

purpose of static methods and variables ?

This is a discussion on purpose of static methods and variables ? within the Programming forums, part of the Web Designing & Development category; Hello Dear, Please Tell Me What is the purpose of static methods and variables ?...

  1. #1
    Member
    Join Date
    Feb 2018
    Posts
    87

    Default purpose of static methods and variables ?

    Hello Dear,


    Please Tell Me What is the purpose of static methods and variables ?

  2. #2
    Senior Member
    Join Date
    Jan 2018
    Location
    PUNE
    Posts
    281

    Default Re: purpose of static methods and variables ?

    If you apply static keyword with any method, it is known as static method. A static method belongs to the class rather than object of a class. A static method can be invoked without the need for creating an instance of a class. static method can access static data member and can change the value of it.