mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Static methods can be called in an object; minor grammatical fixes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@191028 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cf723cd309
commit
63d696330f
1 changed files with 6 additions and 5 deletions
|
@ -1,13 +1,14 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<sect1 id="language.oop5.static">
|
||||
<title>Static Keyword</title>
|
||||
|
||||
<para>
|
||||
Declaring class members or methods as static, makes them callable
|
||||
from outside the object context. A member or method declared
|
||||
with static can not be accessed with a variable that is an instance
|
||||
of the object and cannot be re-defined in an extending class.
|
||||
Declaring class members or methods as static makes them accessible
|
||||
without needing an instantiation of the class. A member declared as
|
||||
static can not be accessed with an instantiated class object (though
|
||||
a static method can). Static members and methods cannot be re-defined
|
||||
in subclasses.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue