Advertisement
Jathin

Untitled

Aug 13th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Interface general
  2. {
  3. private pair<int,int> intital_pos;
  4. private pair<int,int> final_pos;
  5. public movement(intital_pos,final_pos);
  6. }
  7.  
  8. class rook implements general
  9. {
  10. public movement(intital_pos,final_pos)
  11. {
  12. //Implementation
  13. }
  14. }
  15.  
  16. class chessboard
  17. {
  18.  
  19. //Objects of classes like rook,queen;
  20. //rook rook1 = new rook();
  21.  
  22. }
  23. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement