Please sign in to comment.
- Loading branch information...
|@@ -117,9 +117,15 @@ The second way is that *any* object can be a prototype. It can have functions (w|
|### summary of the difference between classes and prototypes|
|-A class in a formal classist language can be an object, but if it is it's a special kind of object with special properties and methods. For example, if you're allowed to dynamically define a new method, you do so by calling a method on the class.|
|+A class in a formal classist language can be an object, but it's a special kind of object with special properties and methods. It is responsible for creating new instances and for defining the behaviour of instances.|
|+Instance behaviour in a classist language is defined with special syntax. If changes are allowed dynamically, they are done with special syntax and/or special methods invoked on the class.|