Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Interface general
- {
- private pair<int,int> intital_pos;
- private pair<int,int> final_pos;
- public movement(intital_pos,final_pos);
- }
- class rook implements general
- {
- public movement(intital_pos,final_pos)
- {
- //Implementation
- }
- }
- class chessboard
- {
- //Objects of classes like rook,queen;
- //rook rook1 = new rook();
- }
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement