• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chain of Responsibility Pattern  RSS feed

 
Amrita Dole
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Got the following from fluffycat.com
I have an interface-

There is 1 class implenting this interface-

I want the DVDCategory class to implement given interface.
Is the above correct?
Thanks,
Amrita
[added code tags - Ilja]
[ January 14, 2004: Message edited by: Ilja Preuss ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not correct (which the compiler would tell you faster than any online forum ). Your class doesn't implement two of the methods specified by the interface.
Was the subject of this post a typo, by the way, because I can't see how this question relates to the chain of responsibility pattern?
[ January 14, 2004: Message edited by: Lasse Koskela ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, common coding convention is to start names of interfaces with a capital letter.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this discussion to Java in General - Beginner.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!