+ 2

Class in python

if u already know how and what is class(object oriented programming) in python,please tell me how and where to learn it.im stuck 2 months to learn it

9th Aug 2017, 11:48 AM
Kevin AS
Kevin AS - avatar
8 Réponses
+ 6
Classes are (in layman terms) a group where you can store lots of stuff, e.g. Functions, objects,variable, etc. Classes exist so that they can group stuff neatly. Like if I have functions all over the place (especially a lot of them) it looks horribly incomprehensible. Class-ing them groups them into neat groups.
9th Aug 2017, 1:35 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 8
https://code.sololearn.com/WBHiShj1ublU/?ref=app Check Python resources here First complete the very basic sololearn course
9th Aug 2017, 1:47 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
It's Vengat!!!
9th Aug 2017, 1:55 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Kevin you must to read simple lesson in Sololearn and of course do examples
9th Aug 2017, 1:32 PM
Daniel
Daniel - avatar
+ 2
@daniel, im already read all best source in internet,ebook.
9th Aug 2017, 1:45 PM
Kevin AS
Kevin AS - avatar
+ 2
it goes like this class classname: #initialize def __init__(self, more parameters) self.parameter=parameter def method1(self,parameters) statement #you can have as many paramters, methods and as many classes as you want. #to create an object Name=classname(parameters, do not fill anything for self.) #acsess class methods print(classname.method(method parameters)) #inheriting class classname2(classname to inherit from) #no __init__ statement because it was already done in the inhertinca class def method1(self,parameters): statements #you acceses and create objects the same way.
2nd Jul 2020, 7:42 AM
Pr0C0d3r
Pr0C0d3r - avatar
+ 1
@tagnev wow, so many programming ebooks.
9th Aug 2017, 1:53 PM
Kevin AS
Kevin AS - avatar
0
okay vengat.thnx.i will try looking a right ebook for me from ur code
9th Aug 2017, 1:56 PM
Kevin AS
Kevin AS - avatar