0

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 Sep 16, 2022 at 23:14
6
  • So, what's your question ? Commented Sep 16, 2022 at 23:16
  • maybe you can't find it because maybe nobody need it in Python. Commented Sep 16, 2022 at 23:19
  • @Maurice Meyer what is abstraction, and how do we implement it in python Commented Sep 16, 2022 at 23:22
  • @furas but dont universities teach you this stuff even if you wont ever use it? Commented Sep 16, 2022 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. Commented Sep 17, 2022 at 2:40

1 Answer 1

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:

https://docs.python.org/3/library/abc.html

answered Sep 17, 2022 at 2:26
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.