Marco

Marco

  • NA
  • 59
  • 0

where keyword and COmparable

Oct 31 2009 8:47 AM
Hello,
 I read this code online and it doesn't compile; i wonder where the error and hopefully a simple link to cope this topic
    class BinaryTree <T> where T:IComparable
    {
        private T dataValue;
        private BinaryTree leftSubTree; // here error
        private BinaryTree rightSubTree; //here error
...............................................
}

Regards,

Answers (2)