#16 Classes and Objects Part -1 | Python Tutorial Series | In Tamil | EMC Academy
HTML-код
- Опубликовано: 12 сен 2024
- I will be introducing you to the concepts of classes and objects in Python.
Classes and objects are fundamental concepts in object-oriented programming (OOP) that enable us to write efficient and modular code. They allow us to create blueprints, known as classes, which define the attributes and behaviors of objects.
In Python, classes are created using the "class" keyword, followed by the name of the class. Attributes, also known as instance variables, represent the data or characteristics of an object. We can define these attributes inside the class using variables.
Sir, please avoid the background music. Nice Explanation and easy understanding sir.Thanks
my noise cancellation works when background music runs its use full
Anda bm ilana cls boring gaa aavum bro
correct da@@masssurya5262
We want a marvellous teacher like u for all subjects what a clr understanding!!! Super hats off 👏
thanks ☺to EMC , after watching your video i feel expect in python
i can able to solve any programm and write own code
once again thank you to EMC .
Thank you bro Now only I understanded this topics....🙏🏼
Thanks!!
I just wanted to say thank you for your incredible teaching style! Your explanations are always so clear and valuable, making even the most complex topics easy to understand. It's evident that you put a lot of effort into your content without any self-promotion, focusing purely on helping your viewers learn and grow. Your dedication and selflessness are truly inspiring. The way you address your audience is particularly appreciable, making us feel engaged and valued. Please don't stop posting videos - your content is a beacon of knowledge for so many of us. Keep up the fantastic work!
Hi John,
You're teaching skills and strategies are simply awesome. Keep rocking.
There is a suggestion regarding Classes and Object anology.
Relationship between a Class and an object is that a class act as a blueprint for an object.
A Class define how an object should behave, You need to make an Object in order to give life for a Class.
goa, an object of class City.
goa, an object of class TouristSpot
ramesh, an Object of class Person/Traveller
These makes sense.
Ramesh is a object of Type Goa doesn't make sense.
Hp instance of class Laptop makes sense.
Please correct it.
Thankyou.
Thank you, please avoid backgrond music
What is the use of (self) and how it works,please explain.And why we didn't use it in 2nd problem..
I'm just lazy so i did this code in same method as yours but not the exact question 😅
class Laptop:
Price=""
Ram=""
def Fast(self):
print ("Faster Performance")
def expensive(self):
print ("""expensive for this price""")
Dell=Laptop()
Dell=Laptop()
Dell.Price="70000"
Dell.Ram="4gb"
print("Dellprice:",.Price)
print("DellRam:",Dell.Ram)
Dell.expensive()
Dell.Fast()
Thank you . Video helped me understand the concept ease. Keep doing it bro
Nenjaarntha nandrigal bro🤸♂👍👍👍
Please teach DBMS with All possible Diagrams such as ER, EER, etc..
Thank you soooo much.Ivlo easya purira mari oopsah yarumey solli thara mudiadhu🤝
superb finally confusion is cleared😇
Background music disturbance ah iruku broo
Super Brother, Vera Level Explanation 🙌🙌🙌🔥🔥
Bro last varaikum antha self parameter edhuku use pananum solave illa
Very good explanation Brother !!!! Thank you very much !!!!😊
Fantastic way of explanation brother! Very helpful
nice explain bro .... instance , class and static methods pathi explain pannuga bro
Anna intha video enaku romba helpfulla itunthathu. TQ
super bro.thanks for educating me.
super but unga background music thookam varuthu........
class laptop:
def __init__(self, price, process, ram):
self.price = price
self.process = process
self.ram = ram
hp = laptop(10,"i5",8)
print("HP")
print(f"price: {hp.price}, process: {hp.process}, ram: {hp.ram}")
dell = laptop(20,"i3",7)
print("Dell")
print(f"price: {dell.price}, process: {dell.process}, ram: {dell.ram}")
lenovo = laptop(30,"i7",12)
print("lenovo")
print(f"price: {lenovo.price}, process: {lenovo.process}, ram: {lenovo.ram}")
Awesome explanation bro easily understood. Thank you ❤
Nice explanation bro 😊 I really understood
Bro super explanation such a easy way u explained it..thank you for this video
In function print lines are no need i think?
bro kadasi varikum andha variable define panna edathula ethuku self potinga nu solave ila?😉🤞....ama ethuku athu??
bro class kulla top la price=" " ram= " " ... ippadi potu irukinga.. but adhu why..? no use dhana..?? because adhuku bathila a=10 apdinu anga potu run pannalum.. same output dhaan varudhu.. then what is use of first three line inside class.. please reply Im confused.. please reply brother
please reply
This is interesting....
Anna please avoid background music
Object means what.. please explain with simple example
it is an instance of class
Super ❤
Thanks
Its like we are assigning the variable both in class and again out of the class,
Thank you sir
if __name__ == '__main__': bro can you explain thin func ? it will help us to future use please replay ASAP
It is one of the condition statement....
If condition:
Statement
"If name == main" is compare name is equal to the main...if it is crt then python execute if ... otherwise python execute else
Bro c programming video podunga next uhhh
Mass Anna
Note: (For Subscribers)
Bro your teaching super but 17:02 check you created object(Outside of the class) it is wrong please correct this mistake
Good Explanation!!
what will happen when the class name and function name are same
Thanks bro
Why you declare 2 variables what purpose?
Bro class and function rendum kitta thatta oremari iruku rendukum enna different 🤔
Function oda annan dhan classes nu vachkonga bro. Peria levela project pandrapa ungalala understand panika mudium difference. Poga poga puria varum.
@@ErrorMakesClever 😯ok bro 👍TQ😊
@@ErrorMakesCleverobject means what
Bro mass ponga ❤
Waiting for next video 😊
Superb.
very easy to understand...tq
Write program in python class and object register for food
Ena bro lite uh Arjun Dass voice varuthu😅😅😅😅
Nice Video
Useful
15:00 that kachamucha😂
NICE😍
na use epic pen software to teach us instead snipping tool
best
Bro last ah ramesh .party () suresh.beach() call panirukega adhuku output ena bro varum
Anna enaku ithu pota error varuthu.. What to do??
thank you brother
Super bro
Antha self ethuku sollunga plss
Bro how can i become data analytics and i am studying bsc maths
Python, SQL, excel , probability, statistics idhuellam kathukonga bro
Bro please apload about the Abstraction
Bro please avoid background music...this music spoil ur video and that music makes irratate
Bro ethuku self potinga nu sollave illa brow 😢
😮epurraa....
Class goa:
Name=""
Drink=""
def party(self):
Print("lets larty...")
def beach(self):
Print("Enjoying the beach")
Ramesh=goa()
Suresh=goa()
Print (ramesh.drink="yes")
Lrint(suresh.drink="no")
O/p:-
Ramesh
Yes
Suresh
No
background sounds are disturbing
Bgm also mass
what about the self that used in the open bracket...you cant explain the self..... what is it???? why we use it???? plz tell us
its reference to the current object. By default all the functions in the class should have atleast one parameter and by convention we call this parameter as SELF. it can be named as anything whatever we want. By using it we can access the variables.
by using self parameter as " self.x = 10 and self.y = 20 "
we can access the variable
@@sathishmurugesan1732 thank you
SQL video podunga bro
Where can i connect to this guy ? Does he hv instagram ?
yes
bro dont play background music its annoying
please avoid bgm...irritating
Background music makes me irritate
Thank you sir
Thanks bro
Thank you anna
thanks bro