GithubHelp home page GithubHelp logo

the-marcy-lab-school / oojs-amazon-activity Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 3.0 4 KB

Object Oriented Design Activity: build Amazon

HTML 60.65% JavaScript 39.35%
object-oriented-programming design se-unit-4 lab mini-project breakthrough-unit-0

oojs-amazon-activity's Introduction

OO Amazon Challenge

Design an Amazon Store using Object Oriented JavaScript. What classes can you create? and How are they related?

Design

Begin by brainstorming the classes you could create for your Amazon Store. For this activity, strive for 2 - 4 classes. For example, you cound have a User class, a Cart class, an Item class, etc. Create class diagrams in order to plan out your design.

Object Relationships

Next, think about how your objects will iteract with each other. For example, a User has a Cart (and only one cart), but a Cart can have many Items. Illustrate these relationships by putting them as properties (attributes) of your classes.

Properties and Methods

Finish your class diagrams by adding additional properties and methods to each of your classes. You should strive for 2 - 5 properties per class and 1 - 3 methods per class. Once your class diagrams are approved by an instructor, you can begin the implementataion.

Implementation

You can fork this repo and clone the forked repo to your AWS environment. Create each class constructor first and test your code as you write it. Think about what initial values your constructor will have. After you've finished and tested your constructors, add your methods one at a time, testing each method immediately as you're writing it.

oojs-amazon-activity's People

Contributors

thuyanduong avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.