Static methods are those which can be called from another class without instantiating an object of the class where it has been declared. It can be called directly after the class name for e.g. classname.staticmethod
A static method is declared by using the keyword 'static'
No comments:
Post a Comment