Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class A {
- public:
- A() {
- cout << "A constructor" << endl;
- }
- };
- class B {
- public:
- B() {
- cout << "B constructor" << endl;
- }
- };
- class C : public B, public A {
- public:
- C() {
- cout << "C constructor" << endl;
- }
- };
- int main() {
- C c;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement