What is the difference between type and class in Python?

Once upon a time, Python had both types and classes. Types were built-in objects defined in C; classes were what you built when using a class statement . The two were named differently because you couldn’t mix these; classes could not extend types.

Sizin İçin Seçtik  What is a class attribute C++?

Leave a Reply

Your email address will not be published. Required fields are marked *