Abstraction
Abstraction means hiding complex details behind a simple interface, so you can use something without knowing how it works internally — like driving a car without understanding the engine.
General Programming
In code, abstraction lets you call a function such as sort() or send_email() and trust it to do the job, without caring about the steps inside. This keeps programs manageable as they grow.
Examples
Python
nums = [3, 1, 2]
nums.sort() # we don't need to know the sorting algorithm
print(nums)Output:
[1, 2, 3]