Skip to content

Commit 00b882c

Browse files
authored
Multiple Inheritance
1 parent b927cf2 commit 00b882c

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Inheritance/Multiple.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//Created by Shashwat Raj
2-
#include<iostream>//Created by Shashwat Raj
32
#include<iostream>
43
using namespace std;
54
//Base Class
@@ -34,35 +33,3 @@ int main()
3433
{
3534
eBook eB;
3635
}
37-
38-
using namespace std;
39-
40-
class Book
41-
{
42-
public:
43-
Book()
44-
{
45-
cout<<"Base Class Constructor of Book"<<endl;
46-
}
47-
};
48-
class Comic
49-
{
50-
public:
51-
Comic()
52-
{
53-
cout<<"Base class Constructor of Comic"<<endl;
54-
}
55-
};
56-
class eBook:public Book, public Comic
57-
{
58-
public:
59-
eBook()
60-
{
61-
cout<<"Derived Class Constructor of eBook"<<endl;
62-
}
63-
};
64-
65-
int main()
66-
{
67-
eBook eB;
68-
}

0 commit comments

Comments
 (0)