W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1999

Re: FW: class Logger

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 25 Oct 1999 19:04:19 +0200 (MET DST)
To: Ingmar Krusch <nacht@novedia.de>
cc: Jigsaw Mailingliste <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.20.9910251818260.15142-100000@tarantula.inria.fr>
On Fri, 22 Oct 1999, Ingmar Krusch wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> I'm currently examining the classes Logger and CommonLogger. The
> documentation says that: "The Logger class is the abstract class that
> loggers must implement". I'm wondering why Logger is an abstract
> class and not an Interface?! What's the actual benefit for the Jigsaw
> design?

Usually, we are using interfaces for when it can be implemented in many
classes. A logger will always be a subclass of "Logger" hence the abstract
class.

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Monday, 25 October 1999 13:04:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:33 GMT