class A;
class B : A;
class C : B;
//
// main.cpp
// 123123
//
// Created by Roman Kotov on 06.04.15.
// Copyright (c) 2015 Roman Kotov. All rights reserved.
//
#include <iostream>
class A {
int a;
public:
int methodA() {
return 10;
}
};
class B : public A {
int b;
public:
int methodB() {
return 1;
}
};
class C : public B {
int c;
public:
int methodC() {
return 2;
}
};
int main(int argc, const char * argv[]) {
C tmp = *new C();
std::cout << tmp.methodA();
return 0;
}