V
VisionSet
class MySuper {
Date date;
}
class MySub extends MySuper {
MyDate date = (MyDate)super.date;
}
Is this sort of thing okay?
I feel I need to do it, but not seen it done before.
I wanted to make my superclass as general as possible so used the Date type,
but subclasses invariably instantiate date themselves as a subclass of Date,
and then need to use it as such.
Date date;
}
class MySub extends MySuper {
MyDate date = (MyDate)super.date;
}
Is this sort of thing okay?
I feel I need to do it, but not seen it done before.
I wanted to make my superclass as general as possible so used the Date type,
but subclasses invariably instantiate date themselves as a subclass of Date,
and then need to use it as such.