class SoapElement(label : String, attributes : scala.xml.MetaData, children :
scala.xml.Node*) extends Elem("env", label, attributes, SoapNamespace, children)
I get a type mismatch error (found scala.xml.Node* required: scala.xml.Node) on
the definition of SoapElement. I understand the problem, but I'm sort of stuck
for a better way to code this. I can do away with the SoapElement class
entirely - it's just a convenience class my other classes extend so all the soap
elements will have the same prefix and namespace, but I'd like to avoid code
duplication as much as possible. Anyway, in general, is it possible for a
subclass constructor to pass a type of someobject* to its superclass? Thanks
for any help.
On Mon, 15 May 2006 02:20:44 +0000, Eric Olander wrote:
> duplication as much as possible. Anyway, in general, is it possible for a
> subclass constructor to pass a type of someobject* to its superclass?
I think it is possible in the same way as when callling a method with *-parameter using an explicit
sequence object. Namely: