Type of inheritance in Python in hindi with example .

Type of inheritance 

   Different type of inheritance क्या है 

तो Python मैं हमारे पास 
Single inheritance 
Multiple inheritance 
Multi level inheritance
Hybrid inheritance

  इसमे से हमने singal inheritance देख लिया । जिसमे हमने देखा था कि एक child class एक super class से inheritance करता है । 
  अब बाकी 3 को देखते है 

Multi inheritance 
   In multiple inheritance, the child inherits from more than 1 parents class.  

  मतलब एक child class है जो दो parents class से inherit करता है मतलब एक से ज्यादा parent class है 
  तो parent 1 से भी inherit कर रहा ये feature
ओर parent 2 से भी inherit कर रहा ये feature । 

  तो हमे यही चीज python मैं implement करना हो तो कैसे कर सकते है । 

Post a Comment

0 Comments