Skip to content

so much easier! - #217

Open
DavidBenavidez123 wants to merge 1 commit into
bloominstituteoftechnology:masterfrom
DavidBenavidez123:master
Open

so much easier!#217
DavidBenavidez123 wants to merge 1 commit into
bloominstituteoftechnology:masterfrom
DavidBenavidez123:master

Conversation

@DavidBenavidez123

Copy link
Copy Markdown

No description provided.

@zackhitch zackhitch left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall great job! Really make sure that you understand what each line of code is doing. This will better prepare you moving forward.

@@ -1 +1,93 @@
// CODE here for your Lambda Classes

class Person {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

}
}

class Instructor extends Person {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

this.classname = studentAttr.classname;
this.favSubjects = studentAttr.favSubjects;
}
listsSubjects() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method should be a method that logs out all of the student's favoriteSubjects one by one..

Given an array, which favSubjects is, how might you log each element of the array, one element at a time?

}


class ProjectManager extends Instructor {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!




const fred = new Instructor({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to test the ProjectManager as well. And try using your own test data, it's better practice than using existing code.

function GameObject(options) {
this.createdAt = options.createdAt;
this.dimensions = options.dimensions;
class GameObject {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GameObject.prototype.destroy = function() {
return `Object was removed from the game.`;
};
class CharacterStats extends GameObject {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GameObject.call(this, characterStatsOptions);
this.hp = characterStatsOptions.hp;
this.name = characterStatsOptions.name;
class Humanoid extends CharacterStats {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants