We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b927cf2 commit 00b882cCopy full SHA for 00b882c
Inheritance/Multiple.cpp
@@ -1,5 +1,4 @@
1
//Created by Shashwat Raj
2
-#include<iostream>//Created by Shashwat Raj
3
#include<iostream>
4
using namespace std;
5
//Base Class
@@ -34,35 +33,3 @@ int main()
34
33
{
35
eBook eB;
36
}
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
51
- Comic()
52
53
- cout<<"Base class Constructor of Comic"<<endl;
54
55
56
-class eBook:public Book, public Comic
57
58
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