score:0

I'm not entirely sure if I get the question right, but perhaps you could do something like this:

abstract class AbstractFoo {

  lazy val menuBar = computeMenuBar

  def menuBar: MenuBar

}

class ConcreteFoo extends AbstractFoo {

  def menuBar: MenuBar = MenuBar("One", "Two")

}

Related Query

More Query from same tag