Minor doc corrections for static implementation
parent
c980a59273
commit
56ba57511b
|
@ -190,7 +190,7 @@ does this mean? Consider two classes: @var{Foo} and @var{SubFoo}, the latter of
|
||||||
which inherits from the former. @var{Foo} defines a static property @var{count}
|
which inherits from the former. @var{Foo} defines a static property @var{count}
|
||||||
to be incremented each time the class is instantiated. The subtype @var{SubFoo},
|
to be incremented each time the class is instantiated. The subtype @var{SubFoo},
|
||||||
when instantiated (assuming the constructor is not overridden), would increment
|
when instantiated (assuming the constructor is not overridden), would increment
|
||||||
that very same count. Therefore, we can represent this by static that
|
that very same count. Therefore, we can represent this by stating that
|
||||||
@samp{Foo.count === SubFoo.count}. In the example below, we demonstrate this
|
@samp{Foo.count === SubFoo.count}. In the example below, we demonstrate this
|
||||||
concept in pseudocode:
|
concept in pseudocode:
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ implementation does provide a number key benefits:
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
It provides an implementation that is @emph{consistent with other
|
It provides an implementation that is @emph{consistent with other
|
||||||
Object-Oriented languages}. This is the most important point!
|
Object-Oriented languages}. This is the most important point.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
The accessor method parameter style is common in other frameworks like jQuery.
|
The accessor method parameter style is common in other frameworks like jQuery.
|
||||||
|
|
Loading…
Reference in New Issue