Skip to content

Instantly share code, notes, and snippets.

@draganczukp
Created May 9, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save draganczukp/65f0e945231491e1ec43a8ffc9c83b7e to your computer and use it in GitHub Desktop.
Save draganczukp/65f0e945231491e1ec43a8ffc9c83b7e to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <exception>
#include <sstream>
using namespace std;
class A{
public:
A(){
cout << "A";
}
};
class B: public A{
public:
B(){
cout << "B";
}
};
class G: public A{
public:
G(){
cout << "G";
}
};
class F: public B, public G{
public:
F(){
cout << "F";
}
};class C: public B{
public:
C(){
cout << "C";
}
};
class D: public A, public B, public C, public F{
public:
D(){
cout << "D";
}
};
class E: public D{
public:
E(){
cout << "E";
}
};
int main(){
E e;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment