Difference between abstraction and encapsulation?
What is the precise difference between encapsulation and abstraction? 40 Answers 40 Most answers here focus on OOP but encapsulation begins much earlier: Every function is an encapsulation; in pseudocode: point x = { 1, 4 } point y = { 23, 42 } numeric d = distance(x, y) Here, distance encapsulates the calculation of … Read more