+ 3
Can anybody tell me how can I learn about classes in python?
6 Answers
+ 4
the internet is full of free tutorials on OOP. Each one has a slightly different approach.
I recommend doing more than one tutorial and watching several youtube videos. At each attempt the concepts will become more clear.
The best way to assure you understand it is to then try a coding challenge using classes.
+ 4
Classes are a way to model real world objects where their features/attributes and behaviour/methods are contained/encapsulated within this one entity that is the class. A class can also be used as a template for building/instantiating objects from it. These objects can be thought of as composite variables.
+ 3
HARI HARAN RAMESH You have just started to learn Python so I will suggest to complete your course first. First try to understand basic things.
+ 3
HARI HARAN RAMESH It was very hard learn, but eventually it starts to make very much sense.
You can either try the hard way and try to understand the tutorial(s) or then find a (video) tutorial where the oop concept is well visualized.
+ 1
Didn't you read Python's OOP tutorials?