- 1

python classes

Hey guys, can anyone briefly describe what classes does do?, I am stuck at this place a week. please help.

25th Sep 2020, 7:25 AM
Dev Sonwani
Dev Sonwani - avatar
4 Respuestas
+ 5
A Class creates a framework of basic descriptions that you can use to create objects. For example: A class of animal will have common features such as colour, sound, breed, eyes, ears, etc.... By assigning attributes to your basic descriptors, you can create different animals without having to rewrite code each time
25th Sep 2020, 7:32 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 8
The Python class gives you the ability to declare a data type which itself contains more than one data types, so you can work with them using any function.
25th Sep 2020, 11:27 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
Attached is a poor example of using a class to create objects which can be used in a program. https://code.sololearn.com/c8a55LdLpWNB/?ref=app
25th Sep 2020, 7:39 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 5
in learn section you can find some information about classes in python: https://www.sololearn.com/learn/Python/2467/ https://www.sololearn.com/learn/Python/2473/
25th Sep 2020, 10:48 AM
Lothar
Lothar - avatar