What's the difference between abstraction and generalization?

后端 未结 8 1158
滥情空心
滥情空心 2021-01-30 13:26

I understand that abstraction is about taking something more concrete and making it more abstract. That something may be either a data structure or a procedure. For example:

8条回答
  •  [愿得一人]
    2021-01-30 13:45

    Let me explain in the simplest manner possible.

    "All pretty girls are female." is an abstraction.

    "All pretty girls put on make-up." is a generalization.

提交回复
热议问题