Abstraction in python

Abstraction in python

Abstraction is one of the basic principles of object-oriented programming, which is a simple process of hiding unnecessary information from the user, and only showing the necessary stuff. Due to this, the user need not have to care about the complexity and the internal things, and still, he/she can use/implement the things. You can see abstraction a lot, in the real life as well.

For example, many of us use the ATM machine for different transactions, like money transfers, withdrawals, balance checking, etc…

We as a user, use the machine, without even knowing about the internals and other working complexities of the machine, and simply we are done with what we want to do (it is obvious that we need to know how to use the machine).

So, this was about abstraction. This simply is a process of hiding unnecessary information from the user.