GithubHelp home page GithubHelp logo

inheritance's Introduction

Inheritance

과제

사원의 종류는 다음과 같다

  • 일반 사원
  • 정규직 사원(연봉 1억2천)
  • 파트타임 사원(시간당 25,000)
  • 영업직 사원 (기본연봉에 영업실적 5%)

사원 클래스는 부서 객체를 가지고 있고, 부서 종류는 다음과 같다 Department

  • 개발팀
  • 영업팀
  • 고객대응팀
  • 사무직

사번을 동적으로 생성하는데 동반객체(UUID 활용) 를 이용하여 생성한다

반드시 EmployeeManager 클래스를 main에서 호출하여 각각의 임금을 계산하도록 한다

구현해야 할 기능은 다음과 같다

  • 사원들의 총 월급
  • 사원의 평균 월급
  • 부서별 총 월급, 평균 월급

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.