Skip to content

Commit c7540c3

Browse files
committed
Tweaks to prototypal/class question & code.
1 parent ec7af31 commit c7540c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ANSWERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Joking aside though, if you're a job applicant skimming these answers so that yo
6262

6363
**Answer:**
6464

65-
Classical and/or Prototypal inheritance involves having a base template from which other things are created. For instance, one might have a class named `Dog`, from which you could create an instance of a dog, named `sparky`. If you changed something related to `Dog`, then `sparky` may immediately receive those attributes as well.
65+
Classical and prototypal inheritance both involve having a base template from which other things are created. For instance, one might have a class named `Dog`, from which you could create an instance of a dog, named `sparky`. If you changed something related to `Dog`, then `sparky` may immediately receive those attributes as well.
6666

6767
Class based languages distinguish between templates (classes) and instances created from classes, whereas prototypal languages do not. The "super class" of an object is simply another instance. Examples of prototypal inheritance…
6868

0 commit comments

Comments
 (0)