logo
  • 教程列表
  • SO官方文檔
  • 原型模式
    • 原型模式(JavaScript)
    • 原型模式(C)
  1. StackOverflow 文件
  2. Design patterns 教程
  3. 原型模式

原型模式

Created: November-22, 2018

原型模式是一種創造性的設計模式。當要建立的物件型別由原型例項確定時使用它,該例項被 克隆 以生成新物件。

當類需要 “多型(複製)建構函式” 時,使用此模式。

  • 原型模式(JavaScript)

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明