0
Can anyone learn me the consept of classes?
3 Answers
+ 4
Refer Python crash course book (page no 162 ) its about classes concept with valid examples
https://www.pdfdrive.com/python-crash-coursepdf-e33417142.html
+ 2
Consider Car as a class. Now we can have some properties associated with this class Person such as,
This class can have attributes , color, topSpeed... etc..
this is attributes of the Class.
Car class may have some core functionality such as â drive,signal ... etc
Now we have class which have name,properties or attributes,common functions
Now ,we are going to create objects of the class
Object BMW ,withc color red,topSpeed 200mph ,and our bmw can drive , signal
We can create many objects from this class!(Mersedes,Volkswagen.. etc)
Hope this is helpful for you
+ 2
thanks bro