• About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer
EquickLearning - Learn Any Where
EquickLearning - Learn Any Where

Mega_Menu

  • ×
  • Home
  • Windows Server
    • All
    • Server
    • Activity Directory
    • Programming
      • ALL
      • JAVA
      • PHP
      • Installation
        • Windows Server
        • Laravel
        • JDk
        • Software
        • BOOKS
        • Buy Here
        • Pages
          • • About Us
          • • Contact Us
          • • Privacy Policy
          • • Disclaimer
          Search
          HomeJAVAWhat is Inheritance in JAVA in Hindi ? | What Inheritance in OOPs Concept ?

          What is Inheritance in JAVA in Hindi ? | What Inheritance in OOPs Concept ?

          byAnuj Dwivedi1 -May 25, 2020

          What Inheritance in OOPs Concept ?

          Hello Friends! How Are You ?. I hope everything is better. Friends Today we want to discuss about What is Inheritance in JAVA in Hindi ?.

          It is very important to know that What is Inheritance in JAVA in Hindi ? | What Inheritance in OOPs Concept ?. Everything is in this post so read all Content and tells that how useful this post is?


          what-is-inheritance-in-java-in-hindi
          What is Inheritance in OOPS


          Inheritance OOPS का main feature होता है। इसमें old class से new class को create किया जाता है। इसके use से old class की property को new class में उपयोग किया जा सकता है।

          इसके लिये old class को new class में inherit करना होता है। Inheritance में old class को Super class/Parent class/Base class और new class को Sub class/Child class/Derived class कहा जाता है।


          Java में किसी class को दूसरी class में inherit करने के लिये extends keyword का use किया जाता है। जब एक class को दूसरी class में extends करते है तो यह सभी non-Private member including fields & method को inherit करता है ।

          Inhertence का main उद्देस्य code को Reusebility Provide करना होता है।

          जिससे class को केवल Unique feature write करना पड़े और remaning common property और funtionlity दूसरी class से extends कर सके ।

          Syntax : -

          class BaseClass{
              // Statement here
          }
           
          class ChildClass extends BaseClass{
            // Statement here
          }
          


          Subclass -

          Class जो कि दूसरी class के features को extends करती है Subclass, child class or derived class कहलाती है।

          Super class

          Class जिसकी Properties और functionality दूसरी class द्वारा use किया जाता है Super class Parent class या Base class कहलाता है।

          Advantages of Inheritance 

          1. Inheritance का मुख्य advantage यह है कि ऐसे code जो Base class मे already Prevent है उसे child class में दुबारा लिखने की आवश्यकता नहीं होती है
          2. Method Overriding के द्वारा यह Polymerphism को Support+/Promote करता है।

          Read these contents -

          1. CSE final Year Vidhya ?
          2. What is File System ?
          3. Directory Structure of Laravel in Hindi ?
          4. What is Network Security in Hindi ?
          5. What is Applet in Java in Hindi  ?
          6. What is OOPs Concept In Hindi ?
          7. Laravel Installation in Windows ?

          Disadvantage of Inheritance 

          1. Inheritance का main disadvantage यह है कि classes (Parent&Child) दोनों tightly coupled हो जाती है इसका अर्थ है कि यदि हम Parent class के code को हम change करते है तो यह सभी child class को Affect करेगा।
          2. इससे बचने के लिये दोनों classes को Independed होना पड़ेगा जोकि Possible नहीं है।

          Final Word -

          तो दोस्तों आज मैंने आप सभी को What is Inheritance in JAVA in Hindi ? के बारे में बताया हूँ| अगर आपको कोई भी Doubte हो तो Comment करके जरुर पूछे ।

          तो दोस्तों मै आशा करता हूँ की आपको ये Post पसंद आई होगी। अगर आप को ये Post थोड़ी सी भी Useful/Helpful लगी हो Please Follow and Comment जरुर करे और इसे अपने दोस्तों के साथ Share करे! धन्यबाद|
          • Newer

          • Older

          Posted by Anuj Dwivedi

          https://equick-learning.blogspot.com/
          I am Anuj Dwivedi from UP. I am Founder of equicklearning.com . I'm a student of Computer Science and Engineering. I am a full stack developer Currently i'm working on JAVA Based Web Application, Web technology like JSP, SWING, HTML, CSS, JQUERY and also Android App Development.

          You might like

          Show more

          Types of Inheritance in Java in Hindi | How many types of Inheritance in Java

          May 30, 2020

          What is Inheritance in JAVA in Hindi ? | What Inheritance in OOPs Concept ?

          May 25, 2020

          What is Applet in Java in Hindi | Applet Life Cycle in Hindi

          May 14, 2020

          1 Comments

          You are welcome to share your ideas with us in comments

          1. Learning GirlJune 27, 2020 at 7:26 PM

            Nice sir

            ReplyDelete
            Replies
              Reply
          Add comment
          Load more...

          Post a Comment

          You are welcome to share your ideas with us in comments

          Follow Us

          • 1.3k
          • 30
          • 190
          • Popular
          • Recents
          • Comments

          Popular

          EquickLearning - How to set Java Environment or Path on Windows 10 in Hindi(विंडोज पर जावा का पाथ कैसे सेट करें हिंदी में )

          December 22, 2019

          Recents

          Havard University Courses and Certification | Top 9 Havard University and Microsoft Courses

          October 19, 2020

          What is Network Topology in Hindi? | How many types of Network Topology?

          October 10, 2020

          What are the different types of Cables in Hindi?

          October 10, 2020

          Comments

          Anonymous

          Very useful contents bro and helpful thank you 👍...

          Anuj Dwivedi

          Thank you

          Sudhanshu Gupta

          Finally Smajh me aaya👏 Vidya me to kuch aur hi La...

          Categories

          • COMPUTER(7)
          • Cryptography(1)
          • DBMS(4)
          • INTERNET(5)
          • JAVA(8)
          • Programming(9)
          • Security(13)
          • Windows_Server(25)
          EquickLearning - Learn Any Where

          About Us

          मैंने इस site को लिखा और develop किया है ताकि students computer science से संबंधित तकनीकों को आसानी से सीख सकें। मैं विभिन्न तकनीकों पर आसान information प्रदान करने के लिए committed हूं। मुझे उम्मीद है कि यह आपकी बहुत मदद करेगा। - Anuj Dwivedi

          DMCA.com Protection Status
          All Right Reserved Copyright © Equicklearning.Com
          • About
          • Contact Us
          • Privacy Policy
          • Terms & Conditions
          • Disclaimer

          Contact Form