Static
A static method remains common for all objects and can be called directly without the need of creation of any object.
For Example : classname::functionname();
A static property on the other end remains common for all the objects.It preserves its last changed state by any object.
Final
Final keyword on other end does not allows a class to be extended a method to be overridden in subclass or to change a property respective to its use in a class.
A static method remains common for all objects and can be called directly without the need of creation of any object.
For Example : classname::functionname();
A static property on the other end remains common for all the objects.It preserves its last changed state by any object.
Final
Final keyword on other end does not allows a class to be extended a method to be overridden in subclass or to change a property respective to its use in a class.
No comments:
Post a Comment