DE version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
50% Positive
Analyzed from 68 words in the discussion.
Trending Topics
#generalization#abstraction#form#allowing#creating#integer#against#generally#heard#concepts

Discussion (1 Comments)Read Original on HackerNews
Abstraction hides unnecessary detail. Generalization finds/surfaces commonality among items.
> oop - What's the difference between abstraction and generalization? - Stack Overflow - https://stackoverflow.com/questions/19291776/whats-the-diffe...
Creating a procedure/method is a form of abstraction. Allowing it to accept parameters is a form of generalization (by allowing it to be used for a number of similar inputs).
Simply creating an integer data type is a very simple form of generalization. Allowing operations to work against generically against any integer.