Hierarchical Inheritance in Python | Python Tutorials for Beginners #lec92

preview_player
Показать описание
In this lecture we will discuss:
- What is Hierarchical inheritance?
- Program using Hierarchical Inheritance
- Assignment question on Hierarchical Inheritance

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#inheritance #pythonforbeginners #python #pythonprogramming #jennyslectures
Рекомендации по теме
Комментарии
Автор

class human:
def __init__(self, id):
self.id = id
self.homosepians = 1

class student(human):
def __init__(self, id, branch):
super().__init__(id)
self.branch = branch

class teacher(human):
def __init__(self, id, subject):
super().__init__(id)
self.subject = subject

s1 = student(1, 'DS')
print(s1.id)
print(s1.homosepians)
print(s1.branch)

t1 = teacher(2, 'MATHS')
print(t1.id)
print(t1.homosepians)
print(t1.subject)

akshatsharma
Автор

I wish there is a lecture like u ma'am. If you are my lecture I would never bunk class again in life especially your class

tirumalavijaykumar
Автор

We are missing your old and cute intro:
" In the series of learning programming in C..." 😢❤

Iamsrujan..
Автор

I want to inherit your skill to see your all videos mam ...please pray for me .... Your teaching skill is amazing mam

Adritroy-mthz
Автор

class person:
def __init__(self, ear) -> None:
self.ears=ear
def read(self):
print("i can read")

def write(self):
print("i can write")

class student(person):
def do(self):
print("they can do")

class faculty(person):
def __init__(self, ear, leg) -> None:
super().__init__(ear)
self.legs=leg
def correct(self):
print("i can correct")

sir=faculty(3, 2)
print(sir.ears)

zsdnicr
Автор

It is so disheartening to see behavior of students. There are many students who are not talking about topic being discussed in video but are doing stupidity in comments . So sad to see despite such good teaching by maam. 😢

g
Автор

Just finished this lecture, thank you very much. This is a very big help for me, very clear explanation. moving to next lecture.

flipdruid
Автор

thanks for ur efforts from REWARI HARYANA❤❤❤❤

ramanyadav
Автор

Just the notification for the video popped up, and I've my end semester exam of Python tomorrow 😅😂

tanishkprakashjaiswal
Автор

hello ma'am i'm following all of your lectures and it help me alot as a noob to understand programming. i'm practicing on C++ with your lecture they are excellent
i tried to write you on insta but didnt get reply so i'm writing again on your current video lecture as i've seen you are responding to comments. i need your notes for revision and practice please if they are paid please let me know i'll pay the fee
you're doing great for all and even personnel with zero programming knowledge undersrands your lectures and learning from the.
I really appreciated your effort and hopes to get your support to develop my skills

wafahaiderjaffery
Автор

thank you so much maam! You really make concepts very easy to grasp, love from Bengaluru!!

akashrajendraprasad
Автор

Mam after completing python please continue with DSA in Python

codingworlds
Автор

Is it true that it's strange that the convention is to start class names with capital letter but in-built classes such as str are written str() instead of Str()

mek
Автор

is it possible to get a job with python programming in Google, Facebook, Microsoft ..and also is it possible to solve Google like top MNC companies exams problems with python ?

rudrasenareddy
Автор

Ma'am, I am not getting the Assignment. Can you please write the question in the description? 😊

ayushsankrit
Автор

Hello, how can setattr() and getattr() be used?

shirini
Автор

Mam please make video on find different depth first tress from a graph using DFS Algorithm. Please maam make a video on this please 🥺🥺🥺🥺🥺🥺

shubhamoybose
Автор

Thaank you teacher, for this video.
Jai Shree Raam 🚩

vaibhavpatharkar
Автор

Mam tell me that which college u are teaching i want to join

mrkirangamingyt
Автор

Hello Advanced java ka video nahi banaya haii aapne

kcggnpc