Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class bar {
  2. void create() {
  3. write("this is bar\n");
  4. }
  5. }
  6.  
  7. class foo {
  8. void create() {
  9. write("this is foo\n");
  10. }
  11. }
  12.  
  13. class foo2 {
  14. inherit foo;
  15.  
  16. #ifdef CONSTRUCTORS
  17. void create() {
  18. write("this is foo2\n");
  19. }
  20. #endif
  21. }
  22.  
  23. int main() {
  24. foo2 f = foo2();
  25. }
  26.  
  27. inherit bar;
  28.  
  29. #ifdef CONSTRUCTORS
  30. void create() {
  31. write("This is the file\n");
  32. }
  33. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement