I understand what abstraction is, however, I do not how we would implement abstraction in python. When searching, all I was able to find are abstract classes which I do not see relating to abstraction at all.
Asked
Active
Viewed 111 times
0
-
So, what's your question ? – Maurice Meyer Sep 16 '22 at 23:16
-
maybe you can't find it because maybe nobody need it in Python. – furas Sep 16 '22 at 23:19
-
@Maurice Meyer what is abstraction, and how do we implement it in python – DMKC. gamer Sep 16 '22 at 23:22
-
@furas but dont universities teach you this stuff even if you wont ever use it? – DMKC. gamer Sep 16 '22 at 23:23
-
at university I studied about abstraction in C++ and Java and they even have keyword `abstract` for this but Python doesn't have keyword `abstract` and probably nobody bother this. – furas Sep 17 '22 at 02:40
-
Maybe this question answers yours: https://stackoverflow.com/questions/3570796/why-use-abstract-base-classes-in-python – Vinícius OA Sep 19 '22 at 23:29
1 Answers
2
In Python, abstraction really only exists for design/conceptual purposes, not like in other languages like Java or C++.
Maybe you already saw abc
module:

crunker99
- 371
- 2
- 7