Create a workout (or two, if it makes more sense) to cover the following standards and objectives.
We have content that covers the idea of inheritance, and the idea of constructors, in the Java Topic. We'll be moving lots of that into the Comp-Sci topic soon, so that we can have one "Object-Oriented Theory" course, and one "Object Oriented Implementation" section in each language course (where applicable, of course). You only have to cover the "how" and how prototypes can be class-like.
Ensure there is a question and exercise related to each of these labels:
Create a workout (or two, if it makes more sense) to cover the following standards and objectives.
We have content that covers the idea of inheritance, and the idea of constructors, in the Java Topic. We'll be moving lots of that into the Comp-Sci topic soon, so that we can have one "Object-Oriented Theory" course, and one "Object Oriented Implementation" section in each language course (where applicable, of course). You only have to cover the "how" and how prototypes can be class-like.
Ensure there is a question and exercise related to each of these labels:
js.prototype-class: Use prototypes to create class-like objects in JavaScriptjs.prototype-class.0Use a constructor function and the execution context of that function to produce an instance with particular propertiesjs.prototype-class.1Use the prototype of the constructor function to set methods on instances produced by the constructor functionjs.prototype-class.2Modify the instance using a prototype methodjs.prototype-inherit: Use prototypes to create class-like inheritance in JavaScriptjs.prototype-inherit.0Set the prototype of the constructor function to inherit methods on instances produced by the constructor functionjs.prototype-inherit.1Modify the instance using an inherited prototype's method