13 lines
117 B
C++
13 lines
117 B
C++
class A {
|
|
void hi() {}
|
|
int a;
|
|
};
|
|
|
|
class B : public A {
|
|
virtual void bye() {}
|
|
};
|
|
|
|
int main() {
|
|
B b;
|
|
}
|