Skip to content

fivethreeeo/shapeFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 클래스 상속(확장) 연습

실행

node app

구조

  • app.js : 프로그램 실행
  • class: Console : 프로그램을 돌리는 콘솔. 입력된 명령어를 ShapeFactory에게 실행 요청, 결과 값을 printer로 출력 요청
  • class: ShapeFactory : Console에서 요청받은 명령어를 실행.
  • class: Shape : shape의 최상위 클래스. Point, Line, Triangle, Rectangle, Polygon 을 자식 클래스 갖는다.
  • printer.js : 출력기 모음

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published