Hierarchical Inheritance in Python (Hindi)

preview_player
Показать описание
Hierarchical Inheritance in Python



Check Out Our Other Playlists:

SUBSCRIBE to Learn Programming Language !

Learn more about subject:

________________________________________________

If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
If you have questions ask below in comment section.
Add it to a playlist if you want to watch it later.
________________________________________________

T A L K W I T H M E !
_______________________________________________

Make sure you LIKE, SUBSCRIBE, COMMENT, and REQUEST A VIDEO! :)
_______________________________________________
Рекомендации по теме
Комментарии
Автор

Really amazing. ❤
😊😊

This is the best lesson in python. It Will be easier to distinguish between OOP concepts and non OOP. And don't forget numbering. Your explanations are really high quality. Keep it up 👍

gmkhussain
Автор

sir apke jaise explaination koi nahi deta pure youtube ulta confuse kar dete hai .thanks sir ✌✌❤❤

RaviYadav-ueyw
Автор

So simple explanation need more subscriber for this amazing channel keep doing sir.❤️❤️

rahuljangir
Автор

Another Example for this :D :D

class GrandFather:
def __init__(self, pind):
self.grandfather_property = 1000
self.pind = pind

def
return self.grandfather_property

def get_grandfather_pind(self):
return "yes" if self.pind == "son" else "no"


class Father(GrandFather):
def __init__(self, pind):
super().__init__(pind)
self.father_property = 500

def get_father_property(self):
return self.father_property


class Son(Father):
def __init__(self, salary, pind):
super().__init__(pind)
self.son_property = 250
self.son_salary = salary

def get_son_total_property(self):
return (
self.son_property + self.father_property + self.grandfather_property
) / 2

def get_son_salary(self):
return self.son_salary


class Daughter(Father):
def __init__(self, salary, pind):
super().__init__(pind)
self.daughter_property = 250
self.daughter_salary = salary

def
return (
self.daughter_property + self.father_property + self.grandfather_property
) / 2

def get_daughter_salary(self):
return self.daughter_salary


sonam = Daughter(500, "daughter")


print(f"Can she provide pind to her grandfather ?


ram = Son(500, "son")
print(ram.get_son_salary())

print(f"Can he provide pind to his grandfather ?

nimeshghimire
Автор

Hello sir,
i have class :
class videothread(Qthread):


in this class if i want to access parent class variables of function, so how we can acess?

here is my code :
class m_window_ui(QMainWindow, Ui_MainWindow):
def __init__(self):
super(m_window_ui, self).__init__()
# self.initial_ui = Ui_JohnnetteTechnologies()
# print("initial - ", self.n) # checking for the number of battery in drone model
self.setupUi(self)
#



class VideoThread(QThread):
change_pixmap_signal = pyqtSignal(np.ndarray)
# size = 0
def run(self):
# capture from web cam
cap = cv2.VideoCapture(0)

actually i have to take ip address from the m_window_ui class
and i have to use is in videothread class

AnjaliSingh-zbyw
visit shbcf.ru