Scala How to use extends with an anonymous class

后端 未结 2 1948
花落未央
花落未央 2021-01-02 04:57

Is there a way to extends another class from an Anonymous class in Scala? I means something like

abstract class Salutation {
  def saybye(): String = \"Bye\"         


        
2条回答
提交回复
热议问题