What is Static method

Static method: The static method (also termed as a class method) is one with static reserved word in its header. The static methods vary from all other methods in that they are not related with any specific instance of the class to which they fit in. They are generally accessed directly through the name of a class in which they are defined.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.