Multilevel Inheritance | Python Tutorials For Absolute Beginners In Hindi #62

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 787

  • @CodeWithHarry
    @CodeWithHarry  6 ปีที่แล้ว +174

    Merry Christmas guyz!
    Kis kis ko Santa Claus ne gift diya? Muje to ek T-Shirt mili mere secret santa se! :) :)

    • @yogithabear
      @yogithabear 6 ปีที่แล้ว +2

      muje tho Gaming mouse mila :) :) ;)

    • @flamboyantperson5936
      @flamboyantperson5936 6 ปีที่แล้ว +3

      Bhai aap kaha rehto aur kaunsi company me job karte ho jaha aapko secret santa me gift mili tshirt?

    • @ad_uke
      @ad_uke 4 ปีที่แล้ว +35

      mujhe python sikhne ka mauka mila mere secret santa se 😊😊

    • @ShivamSingh-kn3gz
      @ShivamSingh-kn3gz 4 ปีที่แล้ว +3

      @@ad_uke areee waah..

    • @aadityavermaa
      @aadityavermaa 4 ปีที่แล้ว +3

      @@ad_uke 🤣🤣 naaaice 👌👌😂

  • @darshanbothra2673
    @darshanbothra2673 4 ปีที่แล้ว +2

    aap mere secret santa ho aapne mujhe ye pura course diya. ThankYou Sir. Ap Best Teacher Ho

  • @irongaming9149
    @irongaming9149 ปีที่แล้ว

    class ElectronicDevice:
    Current = 220
    class PocketGadget(ElectronicDevice):
    Wireless = 30
    def Wireless(self):
    return f"it has wireless in {self.Wireless}."
    class Phone(PocketGadget):
    wireless_communication = 100
    def Wireless(self):
    return f"it has wireless in {self.wireless_communication}."
    oven = ElectronicDevice()
    remote = PocketGadget()
    Samsung = Phone()
    print(Samsung.Wireless())
    from Pakistan....
    here are many followers and students of harry brother keep it up

  • @harshitaagarwal25
    @harshitaagarwal25 3 ปีที่แล้ว +6

    you are seriously amazing.. your coding skills and way of explanation are mind blowing

  • @Adityakumar-rz6rv
    @Adityakumar-rz6rv 2 ปีที่แล้ว

    thank you harry bhai for so many videos. This is my exercise
    class electronic_device:
    devices = 4

    def ectro(self):
    return f"no of electronic device is {self.devices}"
    class phone(electronic_device):
    phone = "redmi note 8 pro"

    def no_of_phone(self):
    return f"no of phone is {self.phone}"
    class pocketdevice(phone):
    pocket_device = ["charger", "laptop adapter", "bluethhooth speaker"]
    def pocdev(self):
    return f"no of pocket device are {self.pocket_device}"
    devices = electronic_device()
    apple = phone()
    charger = pocketdevice()
    print(charger.phone)
    thankyou

  • @brucelee1943
    @brucelee1943 3 ปีที่แล้ว +6

    class Elec_device:
    Gps = 1
    Cpu =2
    class Pocket_Gadget(Elec_device):
    Core = ["Media Tek","Snapdragon"]
    class Phone(Pocket_Gadget):
    Sensor = 5
    apple = Phone()
    Ipod = Phone()
    print(apple.Sensor)

  • @kunalhiwale6624
    @kunalhiwale6624 4 ปีที่แล้ว +66

    class electronicdevices:
    motherboard = 1
    circuit = 5
    class pocketgadget(electronicdevices):
    GPS = 1
    circuit = 8
    time = "yes"
    class Smartphone(pocketgadget):
    screentouch = 1
    circuit = 9
    GPU = 1
    CPU = 1
    TV = electronicdevices()
    ipod = pocketgadget()
    apple = Smartphone()
    print(apple.circuit)
    print(apple.motherboard)

  • @tigercoder5067
    @tigercoder5067 3 ปีที่แล้ว +3

    this is video is amazing and my programming level is very fast
    thankyu harry bahi
    thank for everything

  • @valentinecruz930
    @valentinecruz930 3 ปีที่แล้ว +7

    Thankyou harry bhai for uploading such type of content helping PEOPLE in YT to learn python
    AND IAM WATCHING THIS SERIES FROM 1st video AND NOW IAM IN 62 video 😊😊

    • @PacifistJACK
      @PacifistJACK 3 ปีที่แล้ว

      Me too I am st 11th i am happy I am going to complete python before 12

    • @dharmendra.pandit
      @dharmendra.pandit 2 ปีที่แล้ว +1

      @@PacifistJACK complete ho gaya?

  • @Tanishqlather
    @Tanishqlather 6 หลายเดือนก่อน +1

    class electronic_device():
    speaker = 2
    microphone = 1
    keyboard = 1
    processor = 1
    class pocket_device(electronic_device):
    carry = "easy"
    class phone(pocket_device):
    camera = 4
    speaker = 1
    computer = electronic_device()
    iphone_14 = phone()
    print(iphone_14.camera)
    print(iphone_14.processor)

  • @RaviVerma1980
    @RaviVerma1980 2 ปีที่แล้ว +1

    4:45 it will print 1

  • @krishna290gamer2
    @krishna290gamer2 2 ปีที่แล้ว +1

    4:43 Answer is 1 cause Grandson inherits Son which inherits Dad. Thus, Grandson, indirectly, inherits Dad.

  • @onlyTruth557
    @onlyTruth557 ปีที่แล้ว +1

    Here is code :-
    class electro:
    model = 'Fridge'
    Weight = '150kg'
    Rating = "🌟🌟🌟🌟🌟"
    price = "₹30000"
    color = 'red'
    class pocketGadget(electro):
    model = 'earphone'
    price = "₹500"
    Rating = '🌟🌟🌟'
    Weight = "50g"
    class phone(pocketGadget):
    model = 'Apple'
    price = "₹150000"
    Rating = "🌟🌟🌟🌟🌟🌟🌟"
    Security = "🌟🌟🌟🌟🌟🌟🌟..."
    Weight = "500g"
    a = electro()
    b = pocketGadget()
    c = phone()
    print(b.Rating)
    print(c.Rating)
    print(c.color)
    print(b.color)
    print(phone.mro())

  • @priyanka89817
    @priyanka89817 4 ปีที่แล้ว +3

    You are unstoppable harry. Thanku so much for awesome tutorial

  • @ompatel9298
    @ompatel9298 5 ปีที่แล้ว +12

    Thanks harry.

  • @GraceLordGaming
    @GraceLordGaming 4 ปีที่แล้ว +21

    Their can't be any best example of inheritance that Dad, Son and grandSon.

  • @mumtazamir5527
    @mumtazamir5527 6 ปีที่แล้ว +36

    class Edevice():
    circuit = 1
    class Pgadget(Edevice):
    keep_in_pocket = 1
    class Phone(Pgadget):
    call = 1
    print(Pgadget.circuit)

    • @plasmalife5532
      @plasmalife5532 4 ปีที่แล้ว

      Pgadget se circuit ko call keia..ye hi to he.

  • @dnyaneshwarigund9616
    @dnyaneshwarigund9616 2 ปีที่แล้ว

    5:45
    # This my solution of this exercise
    # Create three classes ElectronicDevice,PocketGaget,Phone
    class ElectronicDevice:
    def __init__(self, name, price):
    self.name = name
    self.price = price
    def display(self):
    print("Electronic Information")
    print(f"The Name is: {self.name}")
    print(f"The Price is: {self.price}")
    print()
    class PocketGadgets(ElectronicDevice):
    def __init__(self,name,price,code,use):
    self.name=name
    self.price=price
    self.code = code
    self.use = use
    def display(self):
    print("Pocket Gadget Information")
    print(f"The Name is: {self.name}")
    print(f"The Price is: {self.price}")
    print(f"The Gadget code is: {self.code}")
    print(f"The Use of this gadget is: {self.use}")
    print()
    class Phone(PocketGadgets):
    def __init__(self,name,price,code,ram,rom,no_of_camera,display_size,no_of_pixel):
    self.name = name
    self.price = price
    self.code = code
    self.ram=ram
    self.rom=rom
    self.no_of_camera=no_of_camera
    self.display_size=display_size
    self.no_of_pixel=no_of_pixel
    def display(self):
    print(f"Phone Information")
    print(f"The Name is: {self.name}")
    print(f"The Price is: {self.price}")
    print(f"The IMEI Number is: {self.code}")
    print(f"The Ram size is: {self.ram}")
    print(f"The Storage size is: {self.rom}")
    print(f"This Phone have {self.no_of_camera} number of camera's")
    print(f"The Display size is: {self.display_size} Inches")
    print(f"The Main Camera have: {self.no_of_pixel} pixels")
    print()
    battery=ElectronicDevice("Battery",100)
    battery.display()
    earPhoneWoBhiBluetoothWala=PocketGadgets("Boat 138",899,"B34X37","To listen Music and Attend Online classes")
    earPhoneWoBhiBluetoothWala.display()
    redmiNote_8=Phone("Redmi Note 8",10999,384876767836,"4GB","64GB",4,6.5,"48MP")
    redmiNote_8.display()

  • @dollcyjain2452
    @dollcyjain2452 2 ปีที่แล้ว

    4:45 We will get value of basketball as 1 because we know that Grandson is inherited by Son and Son has basketball = 1 as it is inherited by Dad

  • @akshitphonsa7182
    @akshitphonsa7182 3 ปีที่แล้ว

    4:45 1 is the output

  • @familyaccount467
    @familyaccount467 4 ปีที่แล้ว +1

    Input :
    print(harry.basketball)
    Output :
    1

  • @tanmaykhatri6061
    @tanmaykhatri6061 3 ปีที่แล้ว +1

    print(harry.basketball)
    output: 1

  • @vedantofficialyt7768
    @vedantofficialyt7768 2 ปีที่แล้ว

    harry bhai you are genius 😍
    This is your Exercise answer
    class Electronic_devices:
    Mobile=10
    pc=10
    speekers=15
    keybord=9
    def electroin(self):
    return f"Mobiles in stock {self.Mobile}
    PC in Stock {self.pc}
    speekers in stock {self.speekers}
    Keyborad in stock {self.keybord}"
    class pokets_gadgets(Electronic_devices):
    power_bank=15
    earphones=16
    Blutooth_earphones=15
    earbuds=17
    def pocket(self):
    return f"Power Bank in stock {self.power_bank}
    Earphones in stock {self.earphones}
    Blutooth in stock {self.Blutooth_earphones}
    Earbuds in stock {self.earbuds}"
    class mobile(pokets_gadgets):
    Vivo= 15
    oppo= 17
    MI= 10
    Apple= 5
    def mobile(self):
    return f"2GB Ram VIVO mobiles in stock {self.Vivo}
    3GB Ram OPPO mobiles in stock{self.oppo}
    4GB Ram MI mobiles in stock {self.MI}
    6GB Ram APPLE mobiles in stock {self.MI}"
    SS_electronic=Electronic_devices()
    SS_Gadgets=pokets_gadgets()
    SS_mobile=mobile()
    print(SS_mobile.mobile(),"
    ")
    print(SS_Gadgets.pocket(),"
    ")
    print(SS_electronic.electroin())

  • @pankaj3856
    @pankaj3856 5 ปีที่แล้ว +26

    What a coincidence I am watching it on 26th December, exactly one year later.

  • @universalgroupofeducationm3483
    @universalgroupofeducationm3483 3 ปีที่แล้ว

    4:49 :: Quiz = It will print 1.

  • @arkodeepray6730
    @arkodeepray6730 3 ปีที่แล้ว

    4:45 is will return 1 as larry inherites from darry so larry has all the methods of darry and harry inherites from larry so harry has all the methods from larry which means indirectly he get darry's methods

  • @naveengaonkar
    @naveengaonkar 2 ปีที่แล้ว

    4:45
    Output will be 1

  • @mohanjangid6
    @mohanjangid6 6 ปีที่แล้ว +10

    no 1 dude , i wish if you continue ml using python , and detailed video about data munging , normalization and eda .

  • @mukeshnarayan9101
    @mukeshnarayan9101 4 ปีที่แล้ว +7

    class electronic_device():
    power_consumption=("100w")
    class pocket_gadget(electronic_device):
    power_consumption=("50w")
    class phone(pocket_gadget):
    power_consumption=("5-6w")
    def mobile(self):
    return(f"This uses a rechargable battery which is of {self.name}")
    battery=phone()
    battery.name="2500 mAh"
    print(phone.mobile(battery))
    print(phone.power_consumption)

  • @khizrshaikh9902
    @khizrshaikh9902 4 ปีที่แล้ว +1

    04:23
    The output is 1

  • @galavbhatt7839
    @galavbhatt7839 3 ปีที่แล้ว +1

    You are great mentor 🔥💓

  • @rakshitjain1611
    @rakshitjain1611 2 ปีที่แล้ว +1

    class Electronice_device:
    Laptop = 5
    Camera = 7
    class Pocket_gadget(Electronice_device):
    Toolbox = 1
    leaser = 2
    def repair_kit(self):
    return f"Best pocket gadget {self.leaser} for emergency"
    class Phone(Pocket_gadget):
    samsung = 3
    iphone = 10

    rakshit = Electronice_device()
    devender = Pocket_gadget()
    ravi = Phone
    print(rakshit.Laptop)

  • @KaladharGopal
    @KaladharGopal 4 ปีที่แล้ว +1

    class ElectronicDevice():
    display = 1
    speaker = "At the Back only one"
    mobility = False
    priceRange = "High"
    size = "very Large"
    class PocketGadget(ElectronicDevice):
    size = "Small Comparatively"
    communication = "better Communication"
    class Phone(PocketGadget):
    size = "Very Small "
    mobility = True
    speaker = "At the Back and Front,very small and SDM components"
    old = ElectronicDevice()
    middle = PocketGadget()
    newGen = Phone()
    print(newGen.size)
    print(newGen.communication)

  • @prashantkumarjhariya1681
    @prashantkumarjhariya1681 2 ปีที่แล้ว

    The example you used for this topic is very good.

  • @sahilapte7735
    @sahilapte7735 4 ปีที่แล้ว

    class electronic_device:
    radio = 1
    TV = 1
    speaker = 1
    landline = 2
    class pocket_gadget(electronic_device):
    music_player = 1
    compass = 1
    class phone(pocket_gadget):
    sphone = 1
    print(phone.radio)

  • @mrripergaming1839
    @mrripergaming1839 4 ปีที่แล้ว +7

    multilevel inheritance could be explained by venn diagram
    gole ke andar gola ke andar gola

  • @Influenza-z1i
    @Influenza-z1i 2 ปีที่แล้ว

    Quiz answer :
    4:34 harry bhai 1 he aaega
    7:41
    class ElectronicDivice:
    company="Google"
    Cover="Plastic"
    Wire="Copper"
    MotherBoard=1
    No_of_fuse=5
    vooranti="3 years"

    def __init__(self,divice_name,price,*os):
    self.divice=divice_name
    self.company=ElectronicDivice.company
    self.price=price
    self.os=os
    class PocketGagates(ElectronicDivice):
    wire="Gold"
    vooranti="5 years"

    class phone(PocketGagates):
    wire="copper"
    vooranti="4 years"
    TV=ElectronicDivice("TV",6*10**4)
    anywheredoor=PocketGagates("Any where door",10**6+5*4+3**7)
    iphone=phone("iPHONE",10**4*6+6000,"MAC")

  • @saharayub4448
    @saharayub4448 2 ปีที่แล้ว

    God Bless You!

  • @Normality42
    @Normality42 2 ปีที่แล้ว +1

    4:42 Quiz: Answer is 1

  • @ramniwasyadav3340
    @ramniwasyadav3340 3 ปีที่แล้ว +1

    lass abhi:
    football =6
    class anu(abhi):
    dance = 2
    def isdance(self):
    return f"yes I can dance {self.dance} no of times"
    class aaa(anu):
    dream = "com"

    harry = abhi()
    larry = anu()
    carry = aaa()
    print(larry.isdance())
    print(carry.isdance())
    print(carry.football)

  • @AnkushSaral
    @AnkushSaral ปีที่แล้ว

    Timestamp 4:46 1 hi aayega , because sabse pehle control usi class mai check karega and agar nahi mila to parent class mai .

  • @saghanimayur2518
    @saghanimayur2518 2 ปีที่แล้ว

    Thank you harry bhai

  • @sirvarse
    @sirvarse 4 ปีที่แล้ว +2

    Harry sir this is code of task...
    class ElectronicDevice:
    devices = ['Phone','Laptop','Calculator', ' Pad']
    class PocketGadget(ElectronicDevice):
    devices = ['Laptop','Phone']
    def contains(self):
    return f"PocketGadget can conatains {self.devices}"
    class Phone(PocketGadget):
    apps = ['PUG','Google']
    def contains(self):
    return f"The phone contains apps as {self.apps} and lots of features for use"
    kalu = ElectronicDevice()
    Bhalu = PocketGadget()
    shalu = Phone()
    print(shalu.contains())
    print(Bhalu.contains())

  • @ompatel9298
    @ompatel9298 5 ปีที่แล้ว +1

    class ElectronicDevices:
    system = "binary"
    class PocketGadgets(ElectronicDevices):
    size = "Mostly smaller than 7 inches"
    class Phones(PocketGadgets):
    no_of_phones = "1000000000"
    pass
    print(Phones.size)
    print(Phones.no_of_phones)
    print(Phones.system)

  • @JayPatel-yf7ot
    @JayPatel-yf7ot 2 ปีที่แล้ว

    @CodeWithHarry Hello Harry bhai,
    Bhaiya aapka python ka course bahut mazedar and helpful hein.Agar OOP me aur exercises hoti to aur maja aa jata kyun ki woh part only theory jesa feel ho rha h.

  • @swxin9
    @swxin9 4 ปีที่แล้ว +1

    Harry.basketball should be 1 ..
    Love you harry bhai..

  • @saurabhdongare4241
    @saurabhdongare4241 3 ปีที่แล้ว

    you are simply amazing and thank u harry bhai..

  • @tusharchamp488
    @tusharchamp488 4 ปีที่แล้ว +2

    harry bhai hackers ko konsi programming sikhni chayie aapke hisaab se
    ek complete video bnayi ye

  • @raghavmanishraghavmanish8468
    @raghavmanishraghavmanish8468 2 ปีที่แล้ว

    enjoying the playlist

  • @himanshu_rohil
    @himanshu_rohil 4 ปีที่แล้ว

    print (harry.basketball)
    --> 1
    # this is because it'll first find in Grandson class, then in Son class, then in Dad class
    # since there is no variable of class in Son and Grandson, it prints the value of basketball variable defined in # the Dad class

  • @vinsmalya
    @vinsmalya 2 ปีที่แล้ว +1

    4:24
    Ans = 1

  • @lalitchauhan9824
    @lalitchauhan9824 3 ปีที่แล้ว +1

    class Electronic_device:
    motherboard = 1
    gpu = 7
    cpu = 8
    ram = 32
    class Pocket_gadget(Electronic_device):
    powerbank = 1
    charger = 2
    sim = 7
    class Phone(Pocket_gadget):
    phone = 1
    oneplus = Phone()
    print(oneplus.gpu)
    print(oneplus.powerbank)
    print(oneplus.phone)

  • @aashishfreakin6417
    @aashishfreakin6417 4 ปีที่แล้ว +1

    Quiz is:
    class electronic_device:
    no_of_circuits = 120
    class pocket_gadgets(electronic_device):
    no_of_circuits = 130,000
    calculation = 24
    battery = 0
    def call(self):
    return f"I can do {self.calculation} in 1 seconds."
    class phone(pocket_gadgets):
    call = 190
    calculation = 1202093093
    no_of_circuits = "120 billion"
    def call(self):
    print(f"I can do {self.call} in a day.")
    print(phone.battery)

  • @shivanshvarshney2714
    @shivanshvarshney2714 4 ปีที่แล้ว

    class Electronicdevice:
    buttons=3
    class Pocketdevice(Electronicdevice):
    screen=1
    class Phone(Pocketdevice):
    calls=12
    def call(self):
    return f"You can call {self.calls} times"
    ed=Electronicdevice()
    pd=Pocketdevice()
    P=Phone()
    print(P.call())

  • @arsonbasak5390
    @arsonbasak5390 4 ปีที่แล้ว

    class edevice:
    electronick_device = 4
    class pgajate(edevice):
    keep_in_pocket = 2
    class phone(pgajate):
    can_call_any_one = 1
    ajay = phone
    print(ajay.keep_in_pocket)

  • @rakshitraj3550
    @rakshitraj3550 3 ปีที่แล้ว +1

    class ElectronicDevice:
    MotherBoard = 1
    Sensor = 1
    class PocketGadget(ElectronicDevice):
    GPS = 1
    Sensor = 2
    class Mobile(PocketGadget):
    GPU = 1
    GPS = 2
    ScreenTouch = 1
    TV = ElectronicDevice
    IPAD = PocketGadget
    MI = Mobile
    print(MI.Sensor)

  • @manojrudra6007
    @manojrudra6007 2 ปีที่แล้ว

    i used to watched this video of harry bhai... trying to understand

  • @jituborah279
    @jituborah279 4 ปีที่แล้ว

    class Electricty:
    print("Uses of Electricty")
    power_voltage = 15
    precaution = "Be careful with me!"
    print(precaution)
    class Gadgets(Electricty):
    print("Uses of Gadgets")
    precaution1 = "Be a little hard working in doing your work by your own. Do not use me much"
    print(precaution1)
    class Phone(Gadgets):
    print("Uses of Phone")
    precaution2 = "Be a limited time with me!"
    print(Phone.precaution)
    print(Phone.precaution1)
    print(Phone.precaution2)

  • @aniketgoyal8044
    @aniketgoyal8044 8 หลายเดือนก่อน

    it will print 1 , because all the methods of parent class are in child class so it automatically goes to the parent class

  • @venkatesasrikanthdhulipala9486
    @venkatesasrikanthdhulipala9486 4 ปีที่แล้ว

    answer is 1 because the inheritance the variable is carried out by the son since grandson is inheriting then the variable is accessble to the grandson

  • @Abhishek-_-Sharma
    @Abhishek-_-Sharma 3 ปีที่แล้ว +1

    Watching this on 25 December 2021, exact after 3 years 😂
    class electronic:
    charge = 'unlimited'
    portable = False
    class pocket(electronic):
    charge = 100
    portable = True
    class mobile(pocket):
    addictive = True
    generator = electronic()
    pocket_device = pocket()
    phone = mobile()
    print(phone.charge)
    -------------------
    I don't know if this make sense or not

  • @sarveshkapoor7177
    @sarveshkapoor7177 4 ปีที่แล้ว

    Print(Harry.basketball). Output:-1

  • @adityaanand4906
    @adityaanand4906 4 ปีที่แล้ว +10

    class Electronic_Device():
    no_of_uses="One or two only"
    Advantages=["It makes us easier to do our job"]
    Disadvantages=["More consumption of electricity","Very big size and Can't take it anywhere","Very high cost"]
    def __init__(self,name,use,price):
    self.name=name
    self.use=use
    self.price=price
    def printdetails(self):
    return f"Name of device is {self.name} , its use is {self.use} and price is {self.price}"
    class Pocket_Gadgets(Electronic_Device):
    no_of_uses ="Few only"
    type=["Watches,Phones,Pen drive"]
    Advantages=["It makes us easier to do our job","Least consumption of electricity","Small size and can be taken anywhere","Very low cost"]
    Disadvatages=["People get lazy by using it"]
    def __init__(self,name,use,price):
    self.name = name
    self.use = use
    self.price = price
    def printdetails(self):
    return f"Name of device is {self.name} , its use is {self.use} and price is {self.price}"
    class Phones(Pocket_Gadgets):
    no_of_uses = "Many uses"
    type=["Keypad phones","Smart phones","Smart watches"]
    Advantages = ["Various utilities","Entertainment","Small size and can be taken anywhere","fair cost"]
    Disadvatages = ["Constantly distracting","Sleep deprivation","Health problems","People get lazy by using it"]
    def __init__(self,name,functions,price,company):
    self.name = name
    self.functions = functions
    self.price = price
    self.company = company
    def printdetails(self):
    return f"Name of device is {self.name} , its use is {self.functions} , price is {self.price} and name of companies is {self.company}"
    Washing_machine=Electronic_Device("Washing machine","For cleaning clothes","8000 to 25000")
    Refrigerator=Electronic_Device("Refrigerator","For keeping food products cool and fresh","10000 to 50000")
    watch=Pocket_Gadgets("watch","For seeing time","100 to 10000")
    pen_drive=Pocket_Gadgets("Pen drive","For storing and transferring data","150 to 5000")
    keypad_phone=Phones("Keypad phone",["Calling","Texting","Listening music"],"1000 to 4000",["Samsung","Karbonn","Nokia","Jio phone","Blackberry"])
    smart_phone=Phones("SmartPhone",["Calling","Texting","Seeing Videos","Listening music","Playing games","Booking tickets"],"5000 to 100000",["Samsung","Motorola","Nokia","Oneplus","Asus","Redmi","Apple"])
    print(Washing_machine.printdetails())
    print(pen_drive.printdetails())
    print(smart_phone.printdetails())

    • @omkar_shivam
      @omkar_shivam 4 ปีที่แล้ว +2

      you are not using the variables like type, advantages and disadvantages(code optimistic nhi hai😅 ) though nice one!!!👍

    • @adityaanand4906
      @adityaanand4906 4 ปีที่แล้ว

      @@omkar_shivam thank you

  • @techzcool
    @techzcool 4 ปีที่แล้ว +3

    Thanks for these great series on python

  • @jitendrapal2160
    @jitendrapal2160 4 ปีที่แล้ว +2

    Harry Bhai screen k colour change kro...code dikh ni rha ....white white or zoom b krna

  • @rohanraj9650
    @rohanraj9650 4 ปีที่แล้ว +1

    class Electronic_Device:
    embedded_circuit = 1
    class Pocket_Gadget(Electronic_Device):
    easily_movable = 1
    class Phone(Pocket_Gadget):
    communication = 1
    photos = 1
    gaming = 1
    chargeable = 1
    print(Phone.embedded_circuit)

    • @itscalmmoon
      @itscalmmoon 2 ปีที่แล้ว

      Appke class instance Nehi hain..

  • @sarthakkhare4600
    @sarthakkhare4600 4 ปีที่แล้ว +1

    Print("harry.basketball")
    Output:1 by multiple inheritance

  • @abduksam
    @abduksam 4 ปีที่แล้ว

    class Electronicdevice():
    circuit = 1
    class Pocketgadget(Electronicdevice):
    keep_in_pocket = 1
    class Phone(Pocketgadget):
    call = 1
    print(Pocketgadget.circuit)

  • @coderzadda
    @coderzadda 4 ปีที่แล้ว +2

    class Electronic_device:
    battery = 2
    class Pocket_gadget(Electronic_device):
    display = 1
    class Phone(Pocket_gadget):
    camera = 4
    print(Phone.display)

  • @muhammadaqib2869
    @muhammadaqib2869 6 ปีที่แล้ว +1

    Sir please machine learning ke videos b sath sath upload krain na.. please Sir us series ko b continue ki jiye

  • @theamazingfan8889
    @theamazingfan8889 4 ปีที่แล้ว

    class electronicdevice():
    compo = 20
    class pocketgadget(electronicdevice):
    fuses = 30
    def no_of_fuses(self , fuses):
    return f"No of fuse{self.fuses}"
    class phone(pocketgadget):
    wires = 100
    screen = electronicdevice()
    mic = pocketgadget()
    mi = phone()
    det = mi.wires
    print(det)

  • @suruchisahu23
    @suruchisahu23 2 ปีที่แล้ว

    Answer of the quiz is 1, because the grandson class is linked to son class and then son class is linked to dad class where we fine variable of basketball thats why it will print 1

  • @tigercoder5067
    @tigercoder5067 3 ปีที่แล้ว +1

    Quiz answer -
    class Dad:
    basketball = 1
    harry = Dad()
    print(harry.basketball)
    >>> 1

  • @flamboyantperson5936
    @flamboyantperson5936 6 ปีที่แล้ว +1

    Bahot badhiya bhai

  • @swapneshswaroopmohanty5782
    @swapneshswaroopmohanty5782 3 ปีที่แล้ว

    class electronic_device:
    television = 1
    wires = 10
    car =1
    class pocket_devices(electronic_device):
    pocket_fan =1
    battery =2
    class phone(pocket_devices):
    battery =1
    speaker=2
    fingerprint_sensor = 1
    swapnesh = phone()
    harry_sir = pocket_devices()
    elon_musk = electronic_device()

  • @quotzclip
    @quotzclip 3 ปีที่แล้ว

    4:48 answer is 1

  • @justyy8505
    @justyy8505 3 ปีที่แล้ว +1

    Answer would be 1 because son inherited basketball = 1 from father and father inherited it from grandfather

  • @AbhishekKumar-bb5lc
    @AbhishekKumar-bb5lc 3 ปีที่แล้ว +1

    class electronic_device:
    monitor = 6
    cpu = 4
    keybord = 7
    class pocket_gadget(electronic_device):
    smartphon = 5
    tablate = 6
    class phone(pocket_gadget):
    smasung = 5
    iphon = 7
    ec = electronic_device()
    pg = pocket_gadget()
    ph = phone()
    print(ph.iphon, "- iphon")
    print(ph.tablate, "- tablate")
    print(ph.cpu, "- cpu")

  • @sb_infi
    @sb_infi 3 ปีที่แล้ว

    4:40...1 ayega bro....

  • @techlofiz
    @techlofiz 2 ปีที่แล้ว +1

    #OOPS EXCERCISE
    class Electronics_Devices:
    Types_of_Electronics=5
    def isElectronic(self):
    return f"Yes its in {self.Types_of_Electronics} types of electronics "
    class Pocket_gaget(Electronics_Devices):
    No_of_gagets=10
    def isPocketgaget(self):
    return f"Yes I can make {self.No_of_gagets} no.of gagets"
    class Phone(Pocket_gaget):
    No_of_phones=4
    def Howmanyphones(self):
    return f"I have {self.No_of_phones} no.of phones"
    ohm_digital_store=Electronics_Devices()
    amazon=Pocket_gaget()
    puranjan_dream_house=Phone()
    print(puranjan_dream_house.No_of_phones)

  • @mihirsrivastava1113
    @mihirsrivastava1113 3 ปีที่แล้ว

    04:51 it will give 1

  • @darshanbothra2673
    @darshanbothra2673 4 ปีที่แล้ว

    harry bhai answer 1 aaye ga kyonki harry Grandson class ka which has access to Son class and which has access to Dad class, so indirectly Grandson has access to dad class and so wo uske artributes and methods le sakta hai. ThankYou

  • @techsavvyinfo
    @techsavvyinfo 3 ปีที่แล้ว

    vERY nICE BHAI IT REALLY HELP

  • @simranarora1203
    @simranarora1203 3 ปีที่แล้ว

    Thankyou so much Sir!❤️It really helped me!

  • @anaskhan4841
    @anaskhan4841 4 ปีที่แล้ว

    Great harry bhai

  • @anubhabdas5625
    @anubhabdas5625 3 ปีที่แล้ว

    class electronic_device:
    use = 50
    disadvantages = 90
    class pocket_gadget:
    use = 90
    class phone(electronic_device,pocket_gadget):
    use = 100
    redmi = phone()
    print(redmi.disadvantages)

  • @codersd7841
    @codersd7841 2 ปีที่แล้ว +1

    class Electronic_device:
    def __init__(self,name,model):
    self.name=name
    self.model=model
    class Pocket_gadget(Electronic_device):
    def printdetails(self):
    return f" the device name is {self.name} and model number is {self.model}"
    class Phone(Pocket_gadget):
    pass
    iphone=Phone("iphone12",5456)
    print(iphone.printdetails())

  • @adarshsahu4638
    @adarshsahu4638 2 ปีที่แล้ว

    class electronic_device :
    cell=1
    class pocket_gedget(electronic_device):
    cell=1
    keypad=1
    screen=1
    class phone(pocket_gedget):
    cell=1
    keypad=1
    screen=1
    motherboard=1
    battery=electronic_device()
    payzer=pocket_gedget()
    mobile=phone()
    print(mobile.cell)
    print(payzer.keypad)

  • @catcorner6864
    @catcorner6864 2 ปีที่แล้ว

    class Electronic_devices:
    battery="5000mah"
    class Pocket_gadgets(Electronic_devices):
    size="6inches"
    class Mobile_phones(Pocket_gadgets):
    Ram="8gb"
    ED=Electronic_devices()
    PG=Pocket_gadgets()
    MP=Mobile_phones()
    print(MP.size)
    print(MP.battery)
    print(MP.Ram)

  • @kartikkulshreshtha643
    @kartikkulshreshtha643 4 ปีที่แล้ว +1

    class Electronic_Devices:
    def Laptop(self,str1):
    print(f"{str1} is a company of Electronic devices and laptop is its main Example")
    class Pocket_Gadgets(Electronic_Devices):
    def Tablet(self,str1):
    print(f" But {str1} doesn't make Tablets")
    class Phone(Pocket_Gadgets):
    def Phone(self,str2):
    print(f"And {str2} makes phone")
    Obj = Phone()
    Obj.Laptop("HP")
    Obj.Tablet("HP")
    Obj.Phone("Redmi")

  • @GamingKingAbhi
    @GamingKingAbhi 4 ปีที่แล้ว

    class electronic_device:
    electric_consumtion = " consumes "


    class pocket_gadget(electronic_device):
    portability = " very portable"

    class phone(pocket_gadget):
    message = " Yes i can message"

    lg = electronic_device()
    sony = pocket_gadget()
    apple = phone()
    print(apple.message)
    hope you seee it
    love from punjab

  • @WHITEDEVIL-nu5og
    @WHITEDEVIL-nu5og 3 ปีที่แล้ว

    time 4:46 answer is 1

  • @umangsharma20
    @umangsharma20 4 ปีที่แล้ว +1

    class Electronic_device:
    keypad = 104
    class Pocket_gadget(Electronic_device):
    touchscreen = "At few"
    multitasking = "Yes"
    def isworking(self):
    return f"This has touchscreen {self.touchscreen} with multitasking {self.multitasking}"
    class Phone(Pocket_gadget):
    touchscreen = "At whole screen"
    multitasking = "Yes"
    Generation_4th = "LTE"
    def isworking(self):
    return f"This has touchscreen {self.touchscreen} with multitasking {self.multitasking} " \
    f"and aslo support 4th generation {self.Generation_4th}"
    laptop = Electronic_device
    phones = Pocket_gadget
    android = Phone
    print(android.keypad)

  • @vinsmalya
    @vinsmalya 2 ปีที่แล้ว +1

    class Electronics:
    voltage="2kw"
    def isvolt(self):
    return f"THis Device takes {self.voltage} to run the circuit"
    class PocketGadgets(Electronics):
    voltage="0.5kw"
    def isvolt(self):
    return f"This Gadget takes {self.voltage} to run the circuit." \
    f" so that it works fine"
    class Phone(PocketGadgets):
    voltage = "100w"
    def isvolt(self):
    return f"This Phone takes {self.voltage} to run the circuit" \
    f" So that Phone turns on and works perfrctly"
    motor = Electronics()
    torch= PocketGadgets()
    mobile= Phone()
    print(mobile.isvolt())

  • @youtelevisor
    @youtelevisor 3 ปีที่แล้ว

    class Raw_Materials:
    a="silicon"
    b="polymer"
    c="steel"
    class Electronic_Component(Raw_Materials):
    d="capacitor"
    a="transistor"

    def log(self):
    return f"the main component is: {self.d}"

    class Phone(Electronic_Component):
    d="vivo x21"

    def log(self):
    return f"the model name is {self.d}"

    Tata=Raw_Materials()
    Intel=Electronic_Component()
    Vivo=Phone()
    print(Vivo.log())

  • @amarjeetkumarsingh7023
    @amarjeetkumarsingh7023 4 ปีที่แล้ว

    print(harry.basketball)
    will print 1

  • @AnwarKhan-on5sb
    @AnwarKhan-on5sb 3 ปีที่แล้ว

    quiz answer: yes it will print 1 when print(harry.basketball)

  • @_juniormastermind_
    @_juniormastermind_ 2 ปีที่แล้ว

    Yes sir 1 will come

  • @khadimhusen
    @khadimhusen 6 ปีที่แล้ว +1

    class Electroic:
    def poweruse(self):
    print (f"My name is {self.name}, I use electricity to work")
    class Pocketgadget(Electroic):
    def fitinpocket(self):
    self.poweruse()
    print ( f"{self.name} fits in your pocket easily ")
    class Phone(Pocketgadget):
    def __init__(self, name):
    self.name = name
    Nokia3315 =Phone("Nokia-3315")
    Nokia3315.fitinpocket()

  • @MrKing-mk1mk
    @MrKing-mk1mk 3 ปีที่แล้ว

    class Eledevice:
    electronicdevice= "Cell Tower"
    class Pokdevice(Eledevice):
    Pokect_device = "sim card"

    class phone(Pokdevice):
    def call_possible_in_mobile(self):
    return f"Call is possible when {self.electronicdevice} transmit the signal and {self.Pokect_device} receive the signal. "
    ram = Eledevice()
    shyam = Pokdevice()
    jhyam = phone()
    print(jhyam.call_possible_in_mobile())