Giter Club home page Giter Club logo

csci3308lab12's Introduction

CSCI3308 Lab12

Preperation

You are required to fork this repository to your own Github account. Then you can clone your forked repository to your local computer.

Go through the following links to know more about Facade pattern and Adapter pattern.

Facade Pattern

Imagine that you have some parts of a computer, which is implemented as classes in the parts.py file. Now you want to simplify them into one single Computer class. How can you make it?

Go through the code in parts.py and façade.py. Implement the facade pattern.

Adapter Pattern

Now you have a Computer class in façade.py. But the problem is that I have some running code that wants to call a class which represents a computer. The code can’t call the Computer class directly because the code wants to call some methods that are different from those of the Computer class. How can you implement an adaptor without modifying the running code I have?

Go through the code in adapter.py. Implement the Adapter class. Remember that you can only use the Computer class to implement the Adapter class.

Submit

After you implement all the required code, commit your modification and push it to your Github repository. Then submit the link to your Github repository to Moodle.

csci3308lab12's People

Contributors

kevgao avatar catdewey avatar

Watchers

 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.