Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Mutual inherits IO {
- a : Int <- b;
- b : Int <- a;
- out() : Object { {
- out_int(a);
- out_int(b);
- out_string("\n");
- }};
- };
- Class After inherits IO {
- a : Int <- 5;
- b : Int <- a;
- out() : Object { {
- out_int(a);
- out_int(b);
- out_string("\n");
- }};
- };
- Class Before inherits IO{
- a : Int <- b;
- b : Int <- 5;
- out() : Object { {
- out_int(a);
- out_int(b);
- out_string("\n");
- }};
- };
- Class Main {
- main() : Object {{
- (new Mutual).out();
- (new After).out();
- (new Before).out();
- }};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement