Advertisement
Guest User

class_Queen

a guest
Aug 29th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement