Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

mcqoptions.com

mcqoptions.com Logo mcqoptions.com Logo

mcqoptions.com Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 400964
Next
In Process
Zeeshan Biren Deep
Zeeshan Biren Deep
Asked: 3 years ago2022-11-08T00:59:04+05:30 2022-11-08T00:59:04+05:30In: General Awareness

उदाहरण सहित मल्टीलेवल इनहेरिटेन्स मल्टीपल इनहेरिटेन्स की व्याख्या कीजिए। 

उदाहरण सहित मल्टीलेवल इनहेरिटेन्स मल्टीपल इनहेरिटेन्स की व्याख्या कीजिए। 

Parabola
  • 0
  • 11
  • 0
  • 0
  • 0
    • Report
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Leave an answer

Leave an answer
Cancel reply

Browse

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. ac7b9
    2022-10-31T17:20:50+05:30Added an answer about 3 years ago

    मल्टीलेवल इनहेरिटेन्स जिस प्रकार सिंगल इनहेरिटेन्स में एक बेस क्लास से एक डिराइव्ड क्लास बनाई जाती है। कभी-कभी डिराइब्ड क्लास से भी एक अन्य क्लास बनाई जा सकती है अर्थात् डिराइब्ड क्लास पुनः एक बेस क्लास की तरह कार्य करे, तो इस प्रकार के इनहेरिटेन्स को मल्टीलेवल इनहेरिटेन्स कहते हैं।

    उदाहरण

    #include<iostream.h>
    class Person
    {
    protected:
    char name;
    public:
    void get1()
    {
    cout<<“Enter your Name\n”; cin>>name;
    }
    };
    class Emp: public Person
    {
    protected:
    int basic;
    public:
    void get2()
    {
    cout<<“Enter your Basic\n”; cin>>basic;
    }
    };
    class Manager: public Emp
    {
    protected:
    int deptcode;
    public:
    void display()
    {
    cout<<“Name is “<<name;
    cout<<“\nBasic “<<basic;
    }
    };
    void main()
    {
    Manager obj;
    obj.get1();
    obj.get2();
    obj.display();
    getch();
    }

    आउटपुट

    Enter your Name
    H
    Enter your Basic
    25000
    Name is H
    Basic 25000
    मल्टीपल इनहेरिटेन्स इस प्रकार के इनहेरिटेन्स में एक से अधिक बेस क्लासेज की सहायता से एक डिराइव्ड क्लास बनाई जाती है।
    #include<iostream.h>
    class Expdet
    {
    protected:
    char name;
    public:
    void expr()
    {
    cout<<“Enter your Name”<<end1; cin>>name;
    }
    };
    class Saldet
    {
    protected:
    int salary;
    public:
    void sal()
    {
    cout<<“Enter your Salary”<<end1; cin>>salary;
    }
    };
    class Promotion : public Expdet, public Saldet
    {
    public:
    void promote()
    {
    if (salary> = 20000)
    cout<<“PROMOTED FOR HIGHER GRADE”;
    else
    cout<<“CANNOT BE PROMOTED”;
    }
    };
    void main()
    {
    Promotion obj;
    obj . expr();
    obj . sal();
    obj . promote();
    }

    आउटपुट

    Enter your Name
    J
    Enter your Salary
    23000
    PROMOTED FOR HIGHER GRADE

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Aditi Dugal

    How to approach applying for a job at a company ...

    • 7 Answers
  • Raghavan Prasad Hayer

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Ankita Dinesh Biswas

    What is a programmer’s life like?

    • 5 Answers
  • 47e0c
    47e0c added an answer Correct Answer - Increasing the yield of animals and improving… November 12, 2022 at 9:56 am
  • b6699
    b6699 added an answer Sender\'s addressDateReceivers name and addressSubjectContentYours faithfullyName November 12, 2022 at 9:56 am
  • 10eb8
    10eb8 added an answer Any uncertinity in measurment is known as errorDifference in true… November 12, 2022 at 9:56 am

Related Questions

  • The units of length, velocity and force are doubled. Which ...

    • 1 Answer
  • The penetration of light into the region of geometrical shadow ...

    • 1 Answer
  • if ` veca , vecb ,vecc ` are three vectors ...

    • 1 Answer
  • What is the value of isothermal bulk modulus of elasticity ...

    • 1 Answer
  • निम्न में से किस अणु का सेवाधिक द्विध्रुव आघूर्ण है ...

    • 1 Answer

Top Members

Trending Tags

Class 11 Parabola Polity Polynomials Probability Projectile Protists Quadrilaterals Rario Reasoning Sampling Social Solutions Spectroscopy Switchgear Thermodynamic Tourism Transients Upsc Wbjee

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Users

Footer

mcqoptions.com

About

MCQOptions.com

Here are the top interview questions, example answers, tips for giving the best response.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Follow

© 2022 MCQOptions. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.