SHARE
TWEET

class_Queen

a guest Aug 29th, 2014 28 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class Queen
  4. {
  5.     private int column, row;
  6.     private Queen parent;
  7.  
  8.     //the constructor of the class queen
  9.     public Queen(int Column, int Row, Queen Parent)
  10.     {
  11.         this.row = Row;
  12.         this.column = Column;
  13.         this.parent = Parent;
  14.     }
  15.  
  16.     //the properties of the queen class
  17.     public int Row
  18.     {
  19.         get
  20.         {
  21.             return this.row;
  22.         }
  23.     }
  24.  
  25.     public int Column
  26.     {
  27.         get
  28.         {
  29.             return this.column;
  30.         }
  31.     }
  32.  
  33.     public Queen Parent
  34.     {
  35.         get
  36.         {
  37.             return this.parent;
  38.         }
  39.     }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top