super function in python|| explain in hindi

Publicado el: 23 noviembre 2023
en el canal de: Coding With Sarika
70
3

super function in python|| explain in hindi||‪@codingwithsarika‬


Super():- The super function is used to give access to method and properties of a parent class. The super function returns an object the represents the parent class.


code:-

#Super() Function
class Emp():
def empdetail(self,id,name,Add):
self.id = id
self.name = name
self.Add = Add

Class Detail inherits Emp
class Detail(Emp):
def __init__(self, id, name, Add, Emails):
super().empdetail(id, name, Add)
self.Emails = Emails

Emp_1 = Detail(103, "Rahul", "Pune" , "RR@gmails")
print('The ID is:', Emp_1.id)
print('The Name is:', Emp_1.name)
print('The Address is:', Emp_1.Add)
print('The Emails is:', Emp_1.Emails)


Tags:-
#superfunction
#superfunctioninpython
#pythonbasicconcept
#pythontutorial
#pythoncode
#pythonprogram
#pythoncourse
#superfunctionexplaininhindi


En esta página del sitio puede ver el video en línea super function in python|| explain in hindi de Duración hora minuto segunda en buena calidad , que subió el usuario Coding With Sarika 23 noviembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 70 veces y le gustó 3 a los espectadores. Disfruta viendo!