You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ANSWERS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Joking aside though, if you're a job applicant skimming these answers so that yo
62
62
63
63
**Answer:**
64
64
65
-
Classical and/or Prototypal inheritance involves having a base template from which other things are created. For instance, one might have a classnamed`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 classnamed`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.
66
66
67
67
Class based languages distinguish between templates (classes) and instances created from classes, whereas prototypal languages donot. The"super class"of an object is simply another instance. Examplesof prototypal inheritance…
0 commit comments