• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generic Parameters  RSS feed

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't see why this does not compile (1.5) , can you ?
Thanks.



[edit]Disable smilies. CR[/edit]
[ September 27, 2008: Message edited by: Campbell Ritchie ]
 
Satish Chilukuri
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your addList method, the class type of sublist is a subclass of the type of elist. If Terrier is a subclass of Dog, the code will compile.
 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I wanted - can't see for looking.
Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!