Re: Template method pattern in Java ???

From: Avner Ben (avner_at_skilldesign.com)
Date: 02/17/04

  • Next message: Tim: "Re: Jtree - node from path question"
    Date: Tue, 17 Feb 2004 09:37:56 +0100
    
    

    David Roden wrote:

    > Robert C. Martin wrote:
    >
    >
    >>[...] I like being able to declare a private pure
    >>virtual function. What is says to me is that nobody but the base
    >>should call it.
    >
    >
    > Then why do you want to declare it in an interface?

    I agree with you.

    Robert Martin is apparently on a methodical collision course here. If he
    says that he knows what the method is doing (i.e. invoking another
    method), then he is practically confessing that it is not an interface!

    Please, correct my reasoning if it is wrong!

            Avner.


  • Next message: Tim: "Re: Jtree - node from path question"

    Relevant Pages

    • Re: Template method pattern in Java ???
      ... >>virtual function. ... What is says to me is that nobody but the base ... > Then why do you want to declare it in an interface? ... then he is practically confessing that it is not an interface! ...
      (comp.object)
    • Re: Template method pattern in Java ???
      ... >>virtual function. ... What is says to me is that nobody but the base ... > Then why do you want to declare it in an interface? ... then he is practically confessing that it is not an interface! ...
      (comp.lang.java.help)
    • Re: Template method pattern in Java ???
      ... What is says to me is that nobody but the base ... >Then why do you want to declare it in an interface? ... Not an interface, an abstract class. ...
      (comp.lang.java.programmer)
    • Re: Template method pattern in Java ???
      ... What is says to me is that nobody but the base ... >Then why do you want to declare it in an interface? ... Not an interface, an abstract class. ...
      (comp.lang.java.help)
    • Re: Template method pattern in Java ???
      ... What is says to me is that nobody but the base ... >Then why do you want to declare it in an interface? ... Not an interface, an abstract class. ...
      (comp.object)