Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class bar {
- void create() {
- write("this is bar\n");
- }
- }
- class foo {
- void create() {
- write("this is foo\n");
- }
- }
- class foo2 {
- inherit foo;
- #ifdef CONSTRUCTORS
- void create() {
- write("this is foo2\n");
- }
- #endif
- }
- int main() {
- foo2 f = foo2();
- }
- inherit bar;
- #ifdef CONSTRUCTORS
- void create() {
- write("This is the file\n");
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement