What is the difference private function and static function in opps?
Answers
Answered by
0
hi
You can put the static keyword before or after the method's visibility. However, by convention, the visibility is declared first. private static$static_property; The static methods and static properties are not linked to any particular object of the class but the class itself.
You can put the static keyword before or after the method's visibility. However, by convention, the visibility is declared first. private static$static_property; The static methods and static properties are not linked to any particular object of the class but the class itself.
VijayBrainly123:
pls mark as
Similar questions