Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var a = new ClassName();
  2. a.methodOne();
  3. a.methodTwo();
  4.  
  5. Например: class a {
  6. bool metod1 = false, metod2=false;
  7.  
  8.  
  9. func Fmetod1(){
  10. metod 1 = true;
  11. /////method body/////
  12. metod1=false;
  13.  
  14. if(metod 2 )
  15. metod2();
  16.  
  17. }
  18.  
  19. func Fmetod2(){
  20.  
  21. metod2=true;
  22. if(metod1)
  23. return;
  24.  
  25. //body method//
  26.  
  27. metod2=false;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement