#24 Inheritance, Super Keyword, Polymorphism with example | Python Tutorial Series | EMC Academy

#24 Inheritance, Super Keyword, Polymorphism with example | Python Tutorial Series | EMC Academy

Error Makes Clever

1 год назад

23,037 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@nisha__08
@nisha__08 - 13.10.2023 11:06

Last question super keyword use panaamale output varudhu
Apdi pana kudadha bro

Ответить
@nisha__08
@nisha__08 - 13.10.2023 10:52

16.02 name ah student class la store panalam la bro ( self.name= name)
Bcz inherit panirukom la Apdi save pana output varudhu.
Apdi pana kudadha?

Ответить
@shanmugapriyanr9049
@shanmugapriyanr9049 - 31.08.2023 14:27

Super() keyword ah vachi constructor matum tha inherit panni use panna mudiyum ah ila yantha function nalum use pannikalam ah

Ответить
@JrJs-cg7gu
@JrJs-cg7gu - 17.08.2023 08:14

Vara Vara sollikodukathu puriya mattika

Ответить
@I_am_groot...
@I_am_groot... - 08.08.2023 16:56

For 3rd question

class vehicle ():
def start(self):
print("vehicle started")

class car(vehicle):
def start(self):
print("car started")

a1 = car()
a1 . start()


RESULT :
car started

Ответить
@user-hw2uv7lr5m
@user-hw2uv7lr5m - 31.07.2023 18:26

Bro,
Self.name="success"
Self.salary="30000"
Entha mathiri variable use panna mudiyuma

Ответить
@UNIQUEFASHION-mr9wl
@UNIQUEFASHION-mr9wl - 24.07.2023 15:33

last prgm anwer thrla bro?
any on know the ans pls tell meee

Ответить
@user-cc7ke8ck5m
@user-cc7ke8ck5m - 13.07.2023 14:16

class Shape:
def area(self):
return 0
class Rectangle(Shape):
def area(self,length,breadth):
self.l=length
self.b=breadth
print(f"The lenght {self.l} and breadth {self.b} and the total {self.l*self.b}")

obj_01=Rectangle()
obj_01.area(12,13)

Ответить
@Dream__High
@Dream__High - 29.06.2023 11:23

Give more examples...

Ответить