C++
- 16 ответов
- 0 вопросов
9
Вклад в тег
#define GLFW
#ifdef GLFW
class GLFW : public IWindowSystem
-> class : public IWindowSystem {}
virtual IWindow *createFullScreenWindow(char **title) = 0;
-> virtual IWindow *createFullScreenWindow(const char *title) {}
class Base {
protected:
int myvar;
void useBaseVar(){
cout << myvar << endl; // вывод 42
}
public:
Base() : myvar(10) {}
Base(int val) : myvar(val) {}
~Base() {}
};
class Another : public Base {
public:
Another() : Base(42) {}
void useMyVar() {
useBaseVar();
}
};