-Original Message-
From: wleana [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 23:04
To: [EMAIL PROTECTED]
Subject: Re: static/inherit problem
It doesn't make the difference...:-(
Of course, make it non-static will work technically, but conceptually
it is not correct, and performance-wise not right
Perhaps something like this:
class A {
private static MyLog mLog;
protected myId;
A(){
this(A);
}
protected A(String id) {
myId = id;
init myLog with myId...
}
public void doSth(String aMsg){
mLog.debug(aMsg);
}
}
class B extends A{
B(){
super(B);
}
}
Keith
-Original
It doesn't make the difference...:-(
Of course, make it non-static will work technically, but conceptually
it is not correct, and performance-wise not right either...
This should be a very common problem, how does everyone handling this?
--- In [EMAIL PROTECTED], Keith Hatton [EMAIL PROTECTED]