So I will be taking ya'll with me. This is a personal blog. Sorry if any inconveniences this May have caused you as yourself. 💖Queen
Css Bootcamp-6/30/22
Breakout Room Objective...
PowerPoint Notes - for discussion later:
What is Object Oriented Programming?
What is an object?
How is data stored in objects?
What is a method?
What are some advantages of using objects?
BREAKOUT ROOM VIDEOS:
Factory Functions https://www.youtube.com/watch?v=jpegXpQpb3o :
Constructor Functions https://www.youtube.com/watch?v=23AOrSN-wmI&t=244s :
Breakout Room Coding:
1 . Using object literal, create an object for you house, it should include data fields for number of rooms, bathrooms, number of occupants, and type.
2. Using dot notation console log the number of occupants.
3. Write a factory function which could generate your house object
4. Write a class which could generate your house object
Homework: https://www.youtube.com/watch?v=1ONhXmQuWP8 watch this video and in your own words, describe each pillar below! Be ready to share you answers!
Abstraction:
Inheritance:
Polymorphism:
Encapsulation:
Still feeling lost, need another walkthrough? https://www.youtube.com/watch?v=rlLuL3jYLvA Here is a great video to follow along with.
Article on Constructors vs Factories : https://javascript.plainenglish.io/why-factories-are-better-than-classes-in-javascript-1248b600b6d4
Video on Constructors vs Factories vs Classes: https://www.youtube.com/watch?v=fbuyliXlDGI
Constructors vs Classes article: https://www.toptal.com/javascript/es6-class-chaos-keeps-js-developer-up
No comments:
Post a Comment