twitterpig
V2EX  ›  编程

面向对象最通俗的解释?

  •  
  •   twitterpig · May 14, 2017 · 4733 views
    This topic created in 3464 days ago, the information mentioned may be changed or developed.

    用生活中的常见例子来类比编程的一些概念?

    5 replies  •  2017-08-15 12:40:16 +08:00
    junezoom
    junezoom
    May 18, 2017❤️1
    1
    就像开车,你只要知道车是用来开的就行了,不用知道怎么组装一辆车
    wudaown
    wudaown
    May 24, 2017 via iPhone❤️1
    2
    包装
    Fannie
    Fannie
    Jun 1, 2017
    3
    OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.
    rensung
    rensung
    Jul 8, 2017 via Android
    4
    坐在你的老婆对面
    chenyu8674
    chenyu8674
    Aug 15, 2017
    5
    面向过程:
    位置=目测(苹果)
    手臂移动(位置上方)
    张开手指()
    手臂移动(位置)
    while (指尖压力不足){
    合拢手指()
    }
    手臂移动(位置上方)

    面向对象:
    你.拿起(苹果)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   791 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:58 · PVG 02:58 · LAX 10:58 · JFK 13:58
    ♥ Do have faith in what you're doing.