Sunday, October 21, 2012

Java program to implement multiple inheritance


import java.io.*;
interface bookinfo
{          public void getbookdata()throws IOException;
            public void putbookdata();
}
interface basicinfo
{          public void getbasicdata()throws IOException;
            public void putbasicdata();
}
interface otherinfo
{          public void getotherdata()throws IOException;
            public void putotherdata();
}

class book implements bookinfo,basicinfo,otherinfo
{          String Bname,Bauthor, Blanguage,Bpublisher;
            int Bprice, Bcopies,Byear;
            BufferedReader br=new BufferedReader(new
InputStreamReader(System.in));

public void getbookdata()throws IOException
{          System.out.println("Enter the Book name:");
            Bname=br.readLine();
            System.out.println("Enter the author's name:");
            Bauthor=br.readLine();
}

public void putbookdata()
{ System.out.print(Bname+"\t"+Bauthor+"\t");
}

public void getbasicdata()throws IOException
{          System.out.println("Enter the language:");
            Blanguage=br.readLine();
           
            System.out.println("Enter the published year:");
            Byear=Integer.parseInt(br.readLine());
            System.out.println("Enter the price");
            Bprice=Integer.parseInt(br.readLine());
}

public void putbasicdata()
{          System.out.print(Blanguage+"\t\t"+Byear+"\t"+Bprice+"\t");
}

public void getotherdata()throws IOException
{          System.out.println("Enter the number of copies:");
            Bcopies=Integer.parseInt(br.readLine());
            System.out.println("Enter the publisher:");
            Bpublisher=br.readLine();
}


public void putotherdata()
{          System.out.print(Bcopies+"\t"+Bpublisher+"\t\t");
}
}

class interfaceEg
{
public static void main(String s[])throws IOException
            {
              book it[];
               BufferedReader br=new BufferedReader(new
               InputStreamReader(System.in));
               System.out.println("How much entries..?");
               int k=Integer.parseInt(br.readLine());
               it=new book[k];
               for(int i=0;i<k;i++)
               { it[i]=new book();
               }
             
                for(int i=0;i<k;i++)
               {
               int j=i+1;
               System.out.println("ENTER DETAILS OF THE BOOK :   "+j);
               it[i].getbookdata();
               it[i].getbasicdata();
               it[i].getotherdata();
               }
             
             System.out.println("\n\n***********-----------------Book
              details-----------------************\n");
              System.out.println("Book\tAuthor\tLanguage\tYear\tPrice\tCopies
             \tPublisher");
             System.out.println("............................................................................");
             for(int i=0;i<k;i++)
               {
                
               it[i].putbookdata();
               it[i].putbasicdata();
               it[i].putotherdata();
               }}}   

111 comments:

  1. Happy to visit your blog, I am by all accounts forward to more solid articles and I figure we as a whole wish to thank such huge numbers of good articles, blog to impart to us.https://360digitmg.com/course/certification-program-in-data-science

    ReplyDelete
  2. Hello there to everyone, here everybody is sharing such information, so it's fussy to see this webpage, and I used to visit this blog day by day
    HRDF training

    ReplyDelete
  3. As forever your articles do move me. Each and every detail you have posted was extraordinary.
    AI Courses

    ReplyDelete


  4. Much obliged to you compassionate for this important article. I like it.
    "
    hrdf claimable courses"

    ReplyDelete
  5. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
    business analytics course

    ReplyDelete
  6. Quickbooks Customer Service +1 866-669-5068 is a fantastic accounting software that helps you with your finances.

    ReplyDelete
  7. To get instant support for QuickBooks problems, dial QuickBooks Customer Support Phone Number +1 866-669-5068. Our team makes sure to provide you with the best-in-class technical service for QuickBooks at a reasonable rate.

    ReplyDelete
  8. Learn and discover classes on MS Office Computer Course and do practicals on Excel, Word, PowerPoint, Outlook. Path Creator designed an online Microsoft Course in Kolkata where you will get advanced training for MS- Excel and Learn MS Office in Kolkata. Our Course is designed to Learn to write documents, take notes, create spreadsheets, and more.

    Learn MS Office in Kolkata

    ReplyDelete
  9. QuickBooks offers phone support in addition to online support for people who need help with their software. It provides phone support and email support, both of which are Quickbooks Customer Service +1 855-769-6757.

    ReplyDelete
  10. If you are looking for contact information for QuickBooks, then be sure to give them a call at Quickbooks Customer Service +1 888-210-4052.

    ReplyDelete
  11. I am a tech savvy and have keen interest in coding, wanted to pursue it in my further education. Thank you for sharing this informative article which cleared all my doubts about java coding. I found a detailed blog article about career in JAVA Programing. To Read detailed blog you can visit this website.

    ReplyDelete
  12. Nice and valuable information. Thanks for sharing. Also, visit cricbuzz.com for latest cricket news and live scoring.

    ReplyDelete
  13. Nice and valuable information. Thanks for sharing. Also, visit urdupoint.com for latest news and knowledgeable and Islamic article.

    ReplyDelete
  14. Excellent Blog! Thanks for sharing this post. When i read about this post then got more information. When a class extends more than one class it is called multiple inheritance.

    Ecommerce Website Development Company In Kent London

    Custom Software Development Company In London

    SEO Service Provider In London

    ReplyDelete
  15. If you are also a newbie and looking for a quick solution to all your accounting problems then, QuickBooks Phone Number i+1 888-210-4052s the best source you can find online. They provide instant help from certified specialists from around the world

    ReplyDelete
  16. QuickBooks is the most recommended and widely used accounting software which helps you get your work done easily and efficiently. This software comes with a customer service team that is active 24/7, so you can get answers for any sort of Quickbooks Customer Service question. You can contact them by dialling +1 615-510-6154.

    ReplyDelete
  17. QuickBooks is the most popular accounting software in the U.S. and has been around for more than 20 years. Whether you are a new business owner or someone who is just considering a switch to QuickBooks, please feel free to call me at any time. I am available 24/7 and I can help with anything from installation, troubleshooting,
    and even some more advanced topics like payroll. If you are looking for a solution to your own accounting problems,
    just dial Quickbooks Customer Service. +1 888-698-6548. and they will be glad to help you with any of your questions.

    ReplyDelete
  18. Thanks for sharing this informative content.
    QuickBooks is a software program that was developed by Intuit. The software has been used by millions of business owners worldwide. If you are looking for help with QuickBooks or any other accounting software contact them on the QuickBooks Customer Service

    ReplyDelete
  19. Great Post !! I admire the valuable information you offer in your articles. I will bookmark your blog and refer to my friends.
    Alquema in Queen

    ReplyDelete
  20. In the United Kingdom, the Letting Agents in Birmingham offers a wholly independent service. With the help and support of our family, our real estate agency has effectively expanded along with satisfying customers.

    Free Valuation in Birmingham

    ReplyDelete
  21. What a wonderful blog it really helps me a lot keep doing this work also have a look on this Best pancreatic Surgeon Delhi NCR

    ReplyDelete
  22. This information is helpful to understand the education budget scenario . your article is great to understand educational . If you search of more information blogs like this you can visit this website.

    ReplyDelete
  23. JECRC University Distance Education 2022
    JECRC University is best leading university in India. It is recognized by UGC to offer programmes in online distance learning which is approved by NAAC. Its known for its strong research culture always close to industry and corporates. Provide better support to students for grow in career. And tie-up with leading corporate for better placement. Medium of communication is very modern during study. Over 400 faculties ensure that learn from the best.

    ReplyDelete
  24. I am an exotic birds breeder & I only sell my home breed birds. That's why you always get the best quality birds from us. bird breeders in kolkata

    ReplyDelete
  25. Alagappa University Distance Education Courses Fee Eligibility

    In the year of 1992, Alagappa University was founded. Alagappa University Distance Education offers various programs in multiple fields like Computer Applications, Education, Arts, Management, Science, as well as Languages. This is one of the finest universities in the category of online learning. Alagappa University is a state university that offers distance as well as regular courses to students. Interested applicants who wish to apply to this university can fill out the application form offline or online mode.

    ReplyDelete
  26. JECRC University Admission Process 2022

    JECRC University is become the most popular center of distance learning education, and to work towards academic, professionals, cultural as well as social enrichment of individuals and communities.
    The university offers two-year MBA program in multiple Specialization.

    ReplyDelete
  27. Sikkim Manipal university online Education admission 2022-2023.
    Admission to Sikkim Manipal University's distance learning programme 2022–2023: The final date for admission for the school year 2022–2023 is August 2022. The goal of Sikkim Manipal University is to give students the greatest education possible by offering more correspondence courses. Distance learning at the institution was launched with the help of the Sikkim government and the Manipal education and medical organisation.

    ReplyDelete
  28. What a wonderful blog it really helps me a lot to understand new things keep doing this work also have a look on this Best Fertility Clinic In Faridabad

    ReplyDelete
  29. Keep doing this work and thank you for this informative post it contains some interesting topics and helps me a lot to learn new things also check out this IVF Centre In Faridabad

    ReplyDelete
  30. Thanks a lot for giving us such helpful information.

    Best UI/UX Design Services

    ReplyDelete
  31. Thank you for sharing the information. You should update the blogs often. Your content is great, your knowledge and skill to make that information understandable is great.
    Printing services in Chandigarh

    ReplyDelete
  32. Arya Samaj Mandir Delhi
    There are thousands of such people in the country, who take advantage of this human right given to the citizens by the law.

    ReplyDelete
  33. Nice content thanks for sharing
    If you are looking for Laptop Service in Hyderabad just visit our store in Kukatpally, Hyderabad.

    ReplyDelete
  34. This comment has been removed by the author.

    ReplyDelete
  35. Education at international boarding schools for girls in India also includes the development of ethics and morality, which are important in the professional realm. It is also critical to a country's progress. If a country has both financial and human resources, but no human resources to use the financial resources effectively, development falls over the cliff. Schooling has an influence on both an individual's and a country's growth and development.

    ReplyDelete
  36. The exclusive panel of IB tutors in Hong Kong has teachers who work with IB at different levels. They are well-versed with IB structure.
    IB Psychology Tutors in Hong Kong

    ReplyDelete
  37. nice blog, i find it very usefull,if you want to know about crypto i have written a blog which describes everything about crypto slang

    ReplyDelete
  38. Get all type of programming equipment's from products unlimited store in cedar park, texas. Get Rubber gloves in Cedar Park TX

    ReplyDelete
  39. Thanks for sharing the comprehensive post exactly what I look for. erp software development companies in Chennai

    ReplyDelete
  40. Nice blog. you can also check my website- https://xiss.ac.in/

    ReplyDelete
  41. >I appreciate your producing such an excellent blog! If you are a student searching for the best Referencing Style Guidance and assignment help assistance within your budget, I recommend that you contact the experts at BookMyEssay.com for assistance.

    ReplyDelete
  42. good post visit also- https://keralaayurvedaranchi.com

    ReplyDelete
  43. This Java program to implement multiple inheritance is a testament to the quality of education provided by MVJ College of Engineering. Their curriculum and faculty expertise equip students with the necessary skills to tackle complex programming concepts. It's impressive to see MVJ College of Engineering fostering a deep understanding of inheritance in Java. Well done!

    ReplyDelete
  44. Thanks For sharing!
    PMTrack ERP software is a comprehensive solution designed specifically for the automotive industry, offering advanced features and functionalities to streamline operations and improve productivity.
    With its robust modules for inventory management, production planning, sales, and finance, PMTrack ERP enables automotive companies to effectively manage their processes and gain a competitive edge in the market.
    https://pmtrackerp.in/erp-software-solution-for-automotive-industry/

    ERP Solution for Automotive Industry

    ReplyDelete
  45. What a wonderful post it gives so much knowledge and helps me a lot also contains some important topics keep doing this work also have a look on this Best Hospital In Faridabad

    ReplyDelete
  46. Great article! The information you shared here is really useful. A good presentation of Java programs to implement multiple inheritance is given in this article. Hope for more content like this!
    Get information about ibrutinib price here.

    ReplyDelete
  47. Website development services in USA offer top-tier solutions for creating and enhancing online platforms. Expert developers design, code, and optimize websites to meet specific business needs, ensuring user-friendly interfaces and robust functionality. These services cater to diverse industries, from e-commerce to corporate websites, and prioritize responsive design, SEO, and security to deliver high-quality online experiences.

    ReplyDelete

  48. A top WordPress developer in Chandigarh is a skilled professional with expertise in creating and customizing WordPress websites. They possess in-depth knowledge of WordPress, including themes, plugins, and coding, and have a proven track record of delivering high-quality, responsive, and user-friendly websites. With a keen eye for design and functionality, they can transform your ideas into a visually appealing and fully functional WordPress site that meets your specific needs. Whether you're looking to build a blog, e-commerce store, portfolio, or any other type of website, a top WordPress developer in Chandigarh can turn your vision into reality.

    ReplyDelete
  49. Thank you for describing the in detail about blog commenting. It is a valuable tool. Class 3 Digital Signature

    ReplyDelete
  50. A digital journey with the best web development companies at your side. We blend creativity and technology to build websites that not only look stunning but also perform exceptionally. With our expertise, your online presence will shine, leaving a lasting impression on visitors. Transform your ideas into reality today.

    ReplyDelete
  51. Embrace the convenience of free classified ads in India. Experience a seamless way to buy, sell, or trade anything under the roof. From electronics to fashion, services to jobs, find it all in one place. Don't miss out on fantastic deals and opportunities. Your next treasure awaits just a click away.

    ReplyDelete
  52. Elevate your online presence with exceptional web development services near me. Our local experts specialize in crafting bespoke websites, ensuring a seamless blend of design and functionality. Transform your digital vision into reality and stand out in the online landscape. Enhance user experience, optimize performance, and drive success with our proximity-based web development expertise. Your journey to a compelling and effective online presence begins right here, right now.

    ReplyDelete
  53. Explore the latest tech marvels within your budget with Shopping Adviser's guide to the Best Smart Phones Under 15000. Find unbeatable performance and features without breaking the bank.

    ReplyDelete
  54. Elevate your style and stay connected with the latest technology – explore Smart Watches under 2000 handpicked by Shopping Adviser. Discover the perfect blend of affordability and functionality.

    ReplyDelete
  55. This is a very informative post! This blog really caught my attention. This article shows very good Java programs for implementing multiple inheritance. Keep up the great work and keep sharing your knowledge!
    Know more about arsenic trioxide price here.

    ReplyDelete
  56. What a wonderful blog it helped me to a lot and contain some interesting topics also have a look at this 200-Hour Yoga Teacher Training in Rishikesh and thank you for this interesting topics.

    ReplyDelete
  57. Krutrim AI isn’t just a language model; it’s a revolution in the making. This ambitious venture, led by Ola founder Bhavish Aggarwal, aims to democratize AI and put its power in the hands of every Indian. Let’s delve into the heart of Krutrim AI, exploring its features, funding, launch date, official website, and much more.

    ReplyDelete
  58. thanks for sharing this great article Muhammad jawad

    ReplyDelete
  59. Experience automotive excellence with IGL Coatings India, the foremost ceramic coating manufacturers, wholesalers, and distributors in the India.

    ReplyDelete
  60. Keep doing this work also have a look on this Female Infertility Treatment In Faridabad this blog contains some interesting topics and thank you for this informative post.

    ReplyDelete
  61. t seems like your comment is incomplete. If you have a specific question or if there's something specific you'd like to know or discuss about implementing multiple aspects in a
    Java program, please provide more details, and I'd be happy to help

    ReplyDelete
  62. while I was looking on Yahoo for something else, anyways I am here now and would just like to say thanks for a tremendous post. Please keep up the great work. post matrimonial investigations

    ReplyDelete
  63. Nice article. Thanks for sharing with beautiful writing.

    ReplyDelete
  64. Very nice blog on this website. It is really difficult to get this kind of useful information. I will eagerly look forward to your upcoming updates. Thanks for sharing it here. Loyalty Test Investigation

    ReplyDelete
  65. Fitness Vlogger Gains Credibility

    A vlogger in the fitness world purchased views when starting her channel. The initial boost not only increased her subscriber count through higher visibility but also attracted organic viewers interested in her content.

    Educational Channel Jumps to Top Ranks

    An educational channel struggled to be seen in a saturated market. After a carefully strategized view purchase, they soared up in search rankings, becoming a go-to source for students and scholars alike.

    Musician’s Video Goes Viral

    A burgeoning musician bought views for a music video. This shifted the dynamics, leading organic listeners to believe the video was trending and warranted a watch. The heightened interest led to more shares and eventually a viral explosion.


    https://www.buyyoutubesubscribers.in/youtube-video-views/

    ReplyDelete
  66. Professional Urdu translation services providing accurate and culturally sensitive translations for businesses, organizations, and individuals. Our expert Urdu translators ensure clear communication and seamless localization for all your documents, websites, and content.

    ReplyDelete
  67. Thanks for sharing such a great piece of information with us. Class 3 Digital Signature in Delhi

    ReplyDelete
  68. You have got some great posts in your blog. I will be visiting again.
    Printer Repair Dubai

    ReplyDelete
  69. Looking to order a computer Hindi keyboard? Explore our selection of high-quality keyboards designed specifically for typing in Hindi on your computer. With an ergonomic design and durable construction, our computer Hindi keyboards offer a smooth and comfortable typing experience. Order now to enhance your Hindi typing experience on your computer. Order Now:- https://www.prodotgroup.com/keyboards/kb-297rsusb-hindidevanagri

    ReplyDelete
  70. Discover the ultimate escape at ClubCabana, one of the Best Resorts in Bangalore, offering luxurious amenities and endless fun for a memorable getaway.

    ReplyDelete
  71. Discover a thrilling getaway at ClubCabana, the leading amusement park in Bangalore! Experience exhilarating rides, water fun, and family entertainment. Visit today!

    ReplyDelete
  72. Probyto is dedicated to enhancing Business Intelligence consulting and empowering organizations to make operationally driven decisions based on data. With our tailored approach, advanced analytical skills, and easily navigable visualization tools, we empower clients to make the most of their data and confidently pursue strategic objectives.

    ReplyDelete
  73. Ultimate Guide to Best Popup Designs: Pop ups Examples & Best Practices

    Pop Ups Design

    ReplyDelete
  74. "Hope Ortho & Ultrasound Diagnostics is located in Perambur, Chennai. Dr.Jebaraj leads the practice, which specializes in orthopedic surgery, joint replacement, arthroscopy, ligament surgery, and physiotherapy."

    best joint replacement surgeon in kolathur and perambur

    ReplyDelete
  75. Explore the dystopian thriller film "What Happened to Monday" on Toolbox Studio's website. Unravel the mystery as seven identical sisters go through a world with a one-child policy. https://www.toolbox-studio.com/film-vfx-what-happened-to-monday

    ReplyDelete
  76. over the dynamic career trajectory of an audio engineer. Learn about the responsibilities, skills, and avenues for advancement within this exciting field, encompassing music production, post-production, live sound, and more. https://www.seamedu.com/blog/6-reliable-career-opportunities-in-sound-engineering"

    ReplyDelete
  77. Nice article. Thanks for sharing with beautiful writing. read more about Types of Video Games with Examples
    https://www.seamedu.com/blog/Types-of-Video-Games

    ReplyDelete
  78. You're an amazing content, Thank you for sharing this excellent article. Printer repair in Dubai

    ReplyDelete
  79. Nice blog! Also, check out IGL Coatings one of the best ceramic coating manufacturers in India.

    ReplyDelete
  80. Great explanation on implementing multiple inheritance in Java using interfaces! This concept is crucial for building scalable and maintainable applications. For those looking to leverage their technical skills in a broader digital landscape, the Advanced Digital Marketing Course In Noida By Digiperform is a fantastic opportunity. Understanding programming principles like these can significantly enhance your ability to automate and optimize marketing strategies. Keep up the good work!

    ReplyDelete
  81. What a great post. I feel like I know you better and I m trying to follow your example and figure out what books have shaped me as well. Thank you for sharing this.

    Embroidered Pakistani Suits

    ReplyDelete
  82. Great explanation on implementing multiple inheritance in Java using interfaces! This is a crucial concept for managing complex applications and ensuring code reusability. For those looking to expand their skills in software development and understand its application in real-world scenarios, I highly recommend checking out this comprehensive Digital Marketing Course In Delhi By Digiperform . It offers invaluable insights into how digital strategies can be leveraged alongside technical skills to boost your career.

    ReplyDelete
  83. Great explanation on implementing multiple inheritance in Java using interfaces! As a data science student, understanding these concepts is crucial for developing robust applications. Similarly, gaining expertise in digital marketing is essential for promoting tech-related content effectively. For anyone looking to upskill in this area, I highly recommend the Best Digital Marketing Course In Noida
    Turn on screen reader support. It provides comprehensive training that can complement your technical knowledge with marketing prowess.

    ReplyDelete
  84. Join our advanced Seo Courses In Delhi, designed for both beginners and professionals looking to enhance their SEO skills. Learn the latest on-page and off-page optimization techniques, keyword research, link building strategies, and how to rank websites higher on search engines like Google. With hands-on projects and expert guidance, you’ll master the art of driving organic traffic to any website.

    ReplyDelete
  85. CPP Films https://aerolam.com/cpp-films Aerolam’s CPP films are designed to meet various packaging needs with outstanding clarity and strength, ensuring high-quality results for your applications

    ReplyDelete
  86. Aero Comfort https://aerolam.com/aero-comfort) Aero Comfort by Aerolam offers advanced insulation solutions that improve comfort and energy efficiency, ideal for any modern space.

    ReplyDelete
  87. Welcome to Trend by Noor, Pakistan's premier online store for women's fashion. Discover our exclusive collection of the latest arrivals asim jofa chamak damak collection

    ReplyDelete
  88. nice blog very helpful for everyone thanks for share, if anyone want to do IT profile job then do it course and degree, for more info: Online MBA In IT Management

    ReplyDelete
  89. This comment has been removed by the author.

    ReplyDelete
  90. Thanks for share this information with us
    Being one of the Best Residential Construction Company in Delhi NCR, we provide you with a One-Stop solution in Home Build by providing you with Architecture, Plan approvals, Structural drawings, Construction, 3D visualization, and Interior designing services.

    We understand the hassle one goes through in putting all the pieces together to build a home. Residential construction is not easy and finding the right team to unfold your dream into reality is what matters.

    We provide our services in Delhi, Gurgaon (Gurugram), Faridabad, Noida, Greater Noida and other cities in NCR.

    ReplyDelete
  91. Slot game enthusiasts throughout Southeast Asia now choose Ligamansion2. Ligamansion2 provides a fun and gratifying gaming experience with a wide range of thrilling games, an easy-to-use interface, and excellent win rates. In addition to its wide selection of slot games, it offers safe payment options and prompt customer support, which makes it a well-liked option for gamers.

    hot-game

    poker-game

    crash-game

    live-casino

    e-sports

    ReplyDelete