Coder Social home page Coder Social logo

abstract_class_example's Introduction

추상화 클래스와 템플릿 메서드

Player가 있고 Player는 PlayerLevel 속성을 가진다. 각 레벨 단계에서 run(), jump(), turn() 이 세 가지 기능이 업그레이드된다.

  • 초급자 레벨: 천천히 달린다. run()만 가능.
  • 중급자 레벨: 빠르게 달리고 점프를 할 수 있다. run(), jump() 가능.
  • 고급자 레벨: 엄청 빠르게 달리고 점프와 턴을 할 수 있다. run(), jump(), turn() 가능.
  • Player는 한 번에 하나의 레벨 상태만 가질 수 있다.

png_1

abstract_class_example's People

Contributors

julyuniverse2 avatar

Watchers

Lee Taesung 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.