what are classes and objects in python in hindi
#pythonclasses #python #pythonlearning
?Python Object & Classes are one of the most important concept in real world programming. Classes are blueprint of objects, Let me explain you what are exactly classes in object oriented paradigm, suppose you have various function related to one task on the other hand some functions related to another task. so, you want to wrap these function in a single entity so here class concept rescue to this problem, you can define related function in a class and you can also give name to the class which is related to you real world object name for example you want to create run() , eat() , and sleep() functions these are related to animal class so you can create a class by the name of animal like
class Animal:
def eat(self):
print('animal eats....')
def sleep(self):
print('animal sleeps....')
def run(self):
print('animal runs....')
in this example you see how to declare class with function Now, lets discuss about what are the methods?
Basically Methods are normal function but in object oriented programming functions are called ,methods and in python programming language methods have one mandatory argument that is self as you can see we have used above given example.
if you want to learn more about classes and object and other related topics you can comment below, ask your problem we can create video lecture on it.
Learn programming languages for beginners, in this YouTube channel you will learn very demanding technologies such as python ,Html, CSS, JavaScript, PHP, Java & database connection.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Are You looking for Python Training ?
Unlock the hurdle of getting good command in programming, Now.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Thanks for Watching,
Follow us on
Subscribe to our Channel :
Like Facebook Page : https://www.facebook.com/credibleacedemy/
Follow us on Instagram :https://www.instagram.com/credible_academy/
LinkedIn : https://www.linkedin.com/in/mohsin-ahmad-0bb8085b/
Review - https://www.facebook.com/credibleacedemy/reviews/?ref=page_internal
FB - https://www.facebook.com/credibleacedemy
Видео what are classes and objects in python in hindi автора PythonНовичковый курс по-новому
Видео what are classes and objects in python in hindi автора PythonНовичковый курс по-новому
Информация
2 декабря 2023 г. 5:58:08
00:19:35
Похожие видео