StudyLover
  • Home
  • Study Zone
  • Profiles
  • Contact us
  • Sign in
StudyLover 29. Program to implement multiple inheritance.
Download
  1. C++ Programs list
28. Program to illustrate the concepts of console I/O operations. : 30. Program to implement function overloading.
C++ Programs list

1.      Program to implement multiple inheritance.

  1. #include <iostream.h>

  2. #include<conio.h>

  3. class A {

  4. public:

  5.     void funcA() {

  6.                 cout << "Function A" << endl;

  7.     }

  8. };

  9. class B {

  10. public:

  11.     void funcB() {

  12.                 cout << "Function B" << endl;

  13.     }

  14. };

  15. class C : public A, public B {

  16. public:

  17.     void funcC() {

  18.                 cout << "Function C" << endl;

  19.     }

  20. };

  21. int main() {

  22.     C obj;

  23.  

  24.     obj.funcA();

  25.     obj.funcB();

  26.     obj.funcC();

  27.     getch();

  28.     return 0;

  29. }

28. Program to illustrate the concepts of console I/O operations. 30. Program to implement function overloading.
Our Products & Services
  • Home
Connect with us
  • Contact us
  • +91 82955 87844
  • Rk6yadav@gmail.com

StudyLover - About us

The Best knowledge for Best people.

Copyright © StudyLover
Powered by Odoo - Create a free website