The static methods are basically utility functions creating or making a copy of an object. The const variable is basically used for declaring a constant value that cannot be modified . A static keyword is been used to declare a variable or a method as static.
What is the difference between static and const?
The static methods are basically utility functions creating or making a copy of an object. The const variable is basically used for declaring a constant value that cannot be modified . A static keyword is been used to declare a variable or a method as static.