File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
1-js/09-classes/04-static-properties-methods Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
22# Static properties and methods
33
4- We can also assign a methods to the class function, not to its ` "prototype" ` . Such methods are called * static* .
4+ We can also assign a method to the class function, not to its ` "prototype" ` . Such methods are called * static* .
55
66An example:
77
@@ -125,9 +125,9 @@ Article.publisher = "Ilya Kantor";
125125
126126## Statics and inheritance
127127
128- Statics are inhereted , we can access ` Parent.method ` as ` Child.method ` .
128+ Statics are inherited , we can access ` Parent.method ` as ` Child.method ` .
129129
130- For instance, ` Animal.compare ` in the code below is inhereted and accessible as ` Rabbit.compare ` :
130+ For instance, ` Animal.compare ` in the code below is inherited and accessible as ` Rabbit.compare ` :
131131
132132``` js run
133133class Animal {
You can’t perform that action at this time.
0 commit comments